<!DOCTYPE html>
<html>
<head>
    <script language="javascript" type="text/javascript" async="async" src="static/js/ctr_v2.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>康爱多会员中心-我的收藏</title>
    <meta name="Description" content="" />
    <meta name="Keywords" content="" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <link href="static/css/base.css" rel="stylesheet" type="text/css"/>
    <link href="static/css/newkad_index.css" rel="stylesheet" type="text/css"/>
    <link href="static/css/kad2-center-v1.css" rel="stylesheet" type="text/css"/>
    
    <link href="static/css/kad2-center-popup.css" rel="stylesheet" type="text/css"/>
    <link href="static/css/pop.css" rel="stylesheet" type="text/css"/>
    <script src="static/js/jquery.js" type="text/javascript"></script>
    <script src="static/js/jquery.cookie.js" type="text/javascript"></script>
    <script src="static/js/envconfig.js" type="text/javascript"></script>
    <script src="static/js/newcommonjs.js" type="text/javascript"></script>
    <script src="static/js/publicsearch.js" type="text/javascript"></script>
    <script src="static/js/poplayer.js" type="text/javascript"></script>
    
    <script src="static/js/category_index.js" type="text/javascript"></script>
    <script src="static/js/kad2-center-v1.js" type="text/javascript"></script>
    <script src="static/js/transactionmanagement.js" type="text/javascript"></script>

    
    <link href="static/css/transactionmanagement.css" rel="stylesheet" type="text/css"/>
    <link href="static/css/base_2.css.css" rel="stylesheet" type="text/css"/>
    <link href="static/css/kad2-center-personaldate.css" rel="stylesheet" type="text/css"/>
    <link href="static/css/yproduct.css" rel="stylesheet" type="text/css"/>
    <link href="static/css/kad2-center-safe.css" rel="stylesheet" type="text/css"/>
    <style>
        a:hover { color: red; }
    </style>
    <style>
        .dhtz {display: block;width: 90px;height: 28px;line-height: 28px;background: url(static/images/kad_center_allbgs01.png) no-repeat 0px -426px;color: #fff;}
        a:hover {color: red;}
        a.dhtz:hover {color: white;}
        .myCollect-table .quanxuan dd .checkbox-moni {margin-top: 8px;}
        .no-message a {color: #4a9bef; }
        .no-message a:hover {color: red;}
        .PromptBox .BoxErrorTips {
  display: none;
  border: 1px solid #e9c64e;
  background: #fdf8e3;
  position: absolute;
  left: 0;
  padding: 0px 10px;
  line-height: 30px;
  margin-top: -60px;
  color: #ff3f3f;
}
         .PromptBox .BoxErrorTips1 {
  display: none;
  border: 1px solid #e9c64e;
  background: #fdf8e3;
  position: absolute;
  left: 0;
  padding: 0px 10px;
  line-height: 30px;
  margin-top: -60px;
  color: #ff3f3f;
}.PromptBox .BoxErrorTips1 i {
  background: url(static/images/login_ico.jpg) no-repeat -28px -76px;
  position: absolute;
  width: 10px;
  height: 7px;
  bottom: 0px;
  left: 5px;
  margin-bottom: -6px;
}
         .PromptBox .BoxErrorTips2 {
  display: none;
  border: 1px solid #e9c64e;
  background: #fdf8e3;
  position: absolute;
  left: 0;
  padding: 0px 10px;
  line-height: 30px;
  margin-top: -60px;
  color: #ff3f3f;
}.PromptBox .BoxErrorTips2 i {
  background: url(static/images/login_ico.jpg) no-repeat -28px -76px;
  position: absolute;
  width: 10px;
  height: 7px;
  bottom: 0px;
  left: 5px;
  margin-bottom: -6px;
}.Box-daohuo .BoxBody #input1 {
  width: 120px;
  margin-top: -20px;
}.Box-daohuo .BoxBody #checkCode {
  border: 0 none;
  color: #ff0000;
  font-size: 18px;
  font-weight: bold;
  height: 30px;
  /* line-height: 20px; */
  padding-left: 10px;
}
    </style>

</head>
<body>
   <!--部件开始:header_www_head,分组:页头部件-->
<!--部件开始:v2_head_header_top2,分组:页头部件-->
<div class="layout layout-col w100pct">
	<div class="k_module layout-module">
		<div class="header_top">
		    <div class="header_t">
		        <div class="header_t_l">
		            <div class="YnewNoLogin">欢迎来到康爱多网上药店！ <a onclick="TopClickLogin();" rel="nofollow" href="javascript:void(0);" >登录</a>  
		            <a onclick="TopClickRegister();" rel="nofollow" href="javascript:void(0);" >注册</a></div>
		            <ul class="YnewYesLogin">
		              <li>欢迎回来！</li>
		                <li class="YUserName"></li>
		                <li class="Yout"></li>
		            </ul>
		        </div>
		        <div class="header_t_r">
		            <ul class="hNavList">
		                <li class="Ywebnav">
		                    <span class="Ycen"></span>
		                    <span class="Yico_dian"></span>
		                    <span class="tlast">网站导航</span>
		                    <div class="Ytopnavdiv">
		                        <dl>
		                            <dt>特色频道</dt>
		                            <dd><a href="//www.360kad.com/dymhh/men.shtml" target="_blank">男科中心</a></dd>
		                            <dd><a href="//www.360kad.com/medical/" target="_blank">医疗器械</a></dd>
		                        </dl>
		                        <dl class="d2">
		                            <dt>健康工具</dt>
		                            <dd><a href="//www.360kad.com/zhuanti/kad_zsyd.shtml" target="_blank">掌上药店</a></dd>
		                            <dd><a href="//www.360kad.com/dymhh/selfhelp.shtml" target="_blank">自助找药</a></dd>
		                            <!--<dd><a href="//cart.360kad.com/Assistant" target="_blank">便捷购</a></dd>-->
		                        </dl>
		                        <dl>
		                            <dt>健康知多点</dt>
		                            <dd><a href="//www.360kad.com/Medication/" target="_blank">健康指南</a></dd>
		                            <dd><a href="//ask.360kad.com/" target="_blank">健康问答</a></dd>
		                            <dd><a href="//www.360kad.com/jknews/List_170.shtml" target="_blank">肝胆科</a></dd>
		                            <dd><a href="//pfk.360kad.com/" target="_blank">皮肤科</a></dd>
		                            <dd><a href="//hx.360kad.com/" target="_blank">呼吸科</a></dd>
		                            <dd><a href="//jf.360kad.com/" target="_blank">减肥瘦身</a></dd>
		                            <dd><a href="//sex.360kad.com/" target="_blank">两性健康</a></dd>
		                            <dd><a href="//fk.360kad.com/" target="_blank">妇科</a></dd>
		                            <dd><a href="//baby.360kad.com/" target="_blank">母婴</a></dd>
		                        </dl>
		                    </div>
		                </li>
		                <li class="YService">
		                    <span class="Ycen"></span>
		                    <span class="Yico_dian"></span>
		                    <span class="tlast">客户服务</span>
		                    <div class="Ytopnavdiv">
		                        <dl class="Ymykadc">
		                            <dd><a rel="nofollow" href="//help.360kad.com/" target="_blank">帮助中心</a></dd>
		                            <dd><a rel="nofollow" href="//help.360kad.com/AboutKad/LianXiWoMen" target="_blank">联系我们</a></dd>
		                            <dd><a rel="nofollow" href="//help.360kad.com/Feature/TouSuJianYi" target="_blank">投诉建议</a></dd>
		                            <dd style="display:none"><a rel="nofollow" href="//www.360kad.com/Supplier" target="_blank">厂商合作</a></dd>
		                        </dl>
		                    </div>
		                </li>
		                <li class="ttel">400-8811-020</li>
		                <li class="tcart"></li>
		                <li class="Ymyorder ">
		                    <span class="Ycen"></span>
		                    <span class="Yico_dian"></span>
		                    <a rel="nofollow" href="//user.360kad.com/order?Type=0" class="tlast" target="_blank">我的订单</a>
		                    <div class="Ytopnavdiv">
		                        <dl class="Ymyorderc">
		                            <dd class="YNopay"><a rel="nofollow" href="//user.360kad.com/order?type=1&state=1" target="_blank">待付款订单</a></dd>
		                            <dd class="YNosure"><a rel="nofollow" href="//user.360kad.com/order?type=2&state=4" target="_blank">待确认收货</a></dd>
		                        </dl>
		                    </div>
		                </li>
		                <li class="Ymykad ">
		                    <span class="Ycen"></span>
		                    <span class="Yico_dian"></span>
		                    <a rel="nofollow" href="//user.360kad.com/user" class="tlast" target="_blank">我的康爱多</a>
		                    <div class="Ytopnavdiv">
		                        <dl class="Ymykadc">
		                            <dd><a rel="nofollow" href="//user.360kad.com/Rx" target="_blank">我的处方</a></dd>
		                            <dd><a rel="nofollow" href="//user.360kad.com/Favorite/Index" target="_blank">我的收藏</a></dd>
		                            <dd><a rel="nofollow" href="//user.360kad.com/address/index" target="_blank">收货地址</a></dd>
		                        </dl>
		                    </div>
		                </li>
		            </ul>
		        </div>
		    </div>
		</div>
		 <script>
		function TopClickLogin(){
			location.href='//user.360kad.com/Login?ReturnUrl='+encodeURIComponent(location.href);
		};
		function TopClickRegister(){
			location.href='//user.360kad.com/Register/Mobile?ReturnUrl='+encodeURIComponent(location.href);
		};
		window.onresize = function () {
		   if (document.body.offsetWidth < 1200) {
		       $(".mainBody").css("width", "1200px"); 
		       $(".header_top").css("width", "1200px"); 
		       $(".wrap_footer").css("width", "1200px"); 
		       $(".nav").css("width", "1200px"); 
		       $(".Main_nav").css("width", "1200px"); 
		       $(".middleSide").css("width", "1200px"); 
		       $(".footer_list").css("width", "1200px"); 
		       $(".ZKbanner").css("width", "1200px"); 
		       $(".ZKnav").css("width", "1200px"); 
		       $(".sortBox").css("width", "1200px");
		   } else { 
			   	$(".mainBody").css("width", "100%"); 
			   	$(".header_top").css("width", "100%"); 
			   	$(".wrap_footer").css("width", "100%"); 
			   	$(".nav").css("width", "100%"); 
			   	$(".Main_nav").css("width", "100%"); 
			   	$(".middleSide").css("width", "100%"); 
			   	$(".footer_list").css("width", "100%"); 
			   	$(".ZKbanner").css("width", "100%"); 
			   	$(".ZKnav").css("width", "100%");
			   	$(".sortBox").css("width", "100%"); 
		   }
		}
		</script>
	</div>
</div>
<!--部件结束:v2_head_header_top2-->

<div class="header">
    <div class="header_l">
        <div class="header_logo"><a href="http://www.360kad.com/">
            <img src="static/picture/kad_03.jpg" /></a></div>
        <p><img src="static/picture/autoslogo.gif" /></p>
    </div>
    <!--部件开始:www_search_header,分组:通用部件-->
<div class="header_r">
    <form  name="search" id="searchForm" action="http://search.360kad.com?pageText=" method="get">
    <div class="header_search" id="txtSearchbox1">
        <input id="pageText" name="pageText" class="stxt"  onfocus="SearchText(this,'txtSearchbox1')"  autocomplete="off"  />
        <input type="button" class="sbtn" value="搜索"   id="BtnSearchProdut" onclick="IsProhibited()">
<div class="search_history">
            <div class="search_history_l">
                <div class="y_history">
                     <p class="search_history_t">历史记录：<span><a href="javascript:;" id="his_clearAll" style="display:none;" onclick="delSeacHislist()">清空</a></span></p>
                    <ul class="s_historylist" id="s_historylist"></ul>
                    <div class="no_history">
                        <p><img src="static/picture/kk-pic01.gif" alt=""/></p>
                        <p>亲，您还没有历史记录哦</p>
                    </div>
                </div>             
            </div>
            <div class="search_history_r">
                <p>正在热搜中：</p>
                <div id="s_history_r">                   
                </div>
            </div>
        </div>
        </div>
    <div class="header_search_fine">
        </div>
    </form>
</div>

   <style>
/* 历史记录 */
.search_history{width:456px;display:none; position:absolute;z-index:3;border: 1px solid #e6e6e6; left: -1px; top: 32px;background-color:#fff;height:270px;z-index:99}
.search_history_l{width:230px;float:left;border-right:solid 1px #e6e6e6;padding-top:5px;height:266px}.s_historylist li{cursor: pointer; font-size: 12px; line-height: 24px; height: 24px; padding: 0px 10px; color:#000;}
.s_historylist li span,.search_history_t span{float:right;color:#767676;font-weight:bold;cursor:pointer;}.s_historylist li span{display:none;}
.search_history_t{padding:0 10px;line-height:22px;color:#959595}.search_history_t span a{text-decoration:underline;color:#767676;font-weight:normal;}.s_historylist li a,#findContent li a{color:#000;}.s_historylist li a:hover,#findContent li a:hover{color:#000;text-decoration:none;}
.search_history_r{width:215px;float:left;padding:8px 0px 8px 10px;height:254px;overflow:hidden}.search_history_r a{display:inline-block;height:24px;line-height:24px;margin-bottom:9px; padding:2px 5px;border:solid 1px #cfcfcf;white-space: nowrap; font-weight:normal;color:#000; margin-right:5px;}.search_history_r a:hover{color:#ff0000;border:solid 1px #ff0000;text-decoration:none;}
.search_history_r p{color:#959595;padding-bottom:15px}.s_historylist label{cursor:pointer;}
.no_history{color:#767676;text-align:center;padding-top:25px}.s_historylist li a{width:190px;display:inline-block;}
/*  右侧倒计时 */
     .header {
    	position: relative;
    }
    .header_rtime {
   	display: none;
    	background:url(static/images/search_r_kh201602.png) no-repeat bottom;
    	width: 237px;
    	height: 67px;
    	position: absolute;
    	right: -38px;
    	top: 0px;
    	padding: 45px 0 0 82px;
    	font-family: "微软雅黑";
    	color: #fff;
    }
 .header_rtime:hover{color:#fff;}
    .header_rtime span {
    	float: left;
    	padding-right:25px;
    	font-size: 10px;
    	width: 24px;
    	text-align: center;
        margin-top:37px;
    }

    .kad-search-box .header_r{width:730px;}

   .header_r_d a {
    font-size: 12px;
    color: #999999;
    margin-right: 18px;
    font-family: "微软雅黑";
}
.header_r_d a:hover{color:#fe5207;}
    </style>
    <a href="http://www.360kad.com/zhuanti/kainiandacu.shtml" class="header_rtime" id="Countdown" target="_blank">
   	<span>00</span><span>00</span><span>00</span><span style="padding-right:0;">00</span> 
    </a>
<script>
	;(function(){
        if($('#Countdown').parents().find('.header').width() == 980) return;
        // 倒计时
        var $hotTime = new Date('2016/2/23 18:00:00').getTime(),
            $crazyTime = new Date('2016/2/25 18:00:00').getTime(),
            $readyTime = new Date('2016/2/25 18:00:00').getTime(),
            $endTime = new Date('2016/2/26 23:59:59').getTime(),
            $nowTime = new Date().getTime(),
            time = $crazyTime - $nowTime, //结束时间减去当前时间  剩余
            time1 = $hotTime - $nowTime,
            time2 = $readyTime - $nowTime, //距离开始时间 小于0开始
            $timebox = document.getElementById("Countdown"),
            day, hours, min, sec;
        var $btnSwitch = 0;//初始值
        if(time2 < 0){
          time = $endTime - $nowTime;
        }
        function timeShow(){
            /*if (time2 < 0 && $btnSwitch == 0) {
                $timebox.style.display = 'block';
                $btnSwitch = 1;
            };*/
         if(time < 0) return;
         //   day = checktime(Math.floor(time/1000/60/60/24)),
            hours = checktime(Math.floor(time/1000/60/60)),
            min = checktime(Math.floor(time/1000/60%60)),
            sec = checktime(Math.floor(time/1000%60));
            msec = checktime(Math.floor(time / 100 % 10));
            $timebox.innerHTML = '<span>' + hours + '</span><span>' + min + '</span><span>' + sec + '</span><span style="padding-right:0;">' + msec + '</span>';
            time -= 100;
            setTimeout(timeShow, 100)
        }
        function checktime(t){
            if(t < 10){
                t = "0" + t
            }
            return t
        }
        if (time1 < 0 && $btnSwitch == 0 && time > 0) {
            $timebox.style.display = 'block';
            $btnSwitch = 1;
            var timeshow = timeShow();
        };
    })(); 
</script>
<script type="text/javascript">
	var search_Form = document.getElementById('searchForm');
	var page_Text = document.getElementById('pageText');
	search_Form.onsubmit = function(){
		if(!page_Text.value) return false;
	}
	$(function () {
        var curTime = new Date(); //获取当前的时间戳
        if (curTime.getTime() >= new Date("2015/12/12 23:59:59").getTime()) {
// $(".header_r_d_a4").attr("href", "http://search.360kad.com/?pageText=%E4%B8%9C%E9%98%BF%E9%98%BF%E8%83%B6+&kzone=ssl_wz4"); 
			 // $(".header_r_d_a4").text("东阿阿胶");
              $(".avt_t01").css("background","url(static/images/atv_tbg.jpg) no-repeat;");
         } 
        if ($("#s_history_r").length > 0) {
            $.ajax({
                url: urlConfig.search + "/Home/GetHotKeyWords",
                type: "Get",
                dataType: "jsonp",
                jsonp: "callback",
                success: function (data) {
                    if (data.length > 0) {
                        for (var i = 0; i < data.length; i++) {
                          if(i==10){return}
                           var a=$("<a>").attr({ href: urlConfig.search + "/?pageText=" + encodeURIComponent(data[i])+"&kzone=resou", title: data[i]}).text(data[i]);
                            $("#s_history_r").append(a);
                        }
                    }
                }
            });
        }
    });

function IsProhibited() {
        $.ajax({
            url: urlConfig.search + "/Search/IsProhibited?KeyWord=" + $("#pageText").val(),
            type: "Get",
            dataType: "jsonp",
            jsonp: "callback",
            success: function (data) {
                if (data) {
                    alert('搜索关键词不合法，请重新输入！');
                }
                else {
                    $("#searchForm").submit();
                }
            }
        });
    }

</script>
<!--部件结束:www_search_header-->


</div>
<!--部件结束:header_www_head-->

   <!--部件开始:nav_www_otherleft,分组:频道部件-->
<div class="nav">
    <script type="text/javascript">
        $(function () {
            //全部分类
            var $leftSide_menu = $(".leftSide");
            var $nodesLi = $("#kinds_lists").find("li");
            $nodesLi.find('.potiner_h').prev("a").css('font-weight', 'bold');

            $(".categorys_hover").hover(function () {
                $leftSide_menu.show();
            }, function () {
                $leftSide_menu.hide();
            });
            $nodesLi.hover(function () {
                $(this).addClass('act');
                $(this).children('.sideBox,.blueLine').show();
                $(this).children(".potiner_h").hide();
                $(this).find('.potiner_h').prev("a").css('color', '#ff0000');
            }, function () {
                $(this).removeClass('act');
                $(this).children('.sideBox,.blueLine').hide();
                $(this).children(".potiner_h").show();
                $(this).find('.potiner_h').prev("a").css('color', '#333');
            });
            //END全部分类
            var $linkBox = $(".footer_list980 .linkBox");
            $linkBox.hover(function () {
                $(this).parent().css('height', '66px');
            }, function () {
                $(this).parent().css('height', '22px');
            });
            $(".kad-mc-ask").hover(function () {
                $(".kad-mc-askBox").show();
                $(this).css('background-color', '#0066d4');
            }, function () {
                $(".kad-mc-askBox").hide();
                $(this).css('background-color', '');
            });
        });
    </script>

    <div class="navc itmes_wrap">
        <div class="categorys categorys_hover">
            <h2><a href="//www.360kad.com/dymhh/allclass.shtml" target="_blank">全部商品分类</a></h2>
            <!--分类类目-->
           <script type="text/javascript" src="static/js/js.js"></script>
        </div>
        <!--部件开始:nav_www_home,分组:频道部件-->
<ul class="navclist">
    <li><a href="http://www.360kad.com/" target="_blank">首页</a></li>
    <li><a href="http://www.360kad.com/dymhh/men.shtml" target="_blank">男科药馆</a></li>
    <li ><a href="http://www.360kad.com/meifu" target="_blank">美肤商城</a></li>
    <li ><a href="http://www.360kad.com/medical/" target="_blank">器械商城</a></li>
    <li class="kad-mc-ask" >
        <a href="javascript:;">用药问答</a>
        <i></i>

        <div class="kad-mc-askBox">
            <a class="pl16" title="用药指南" href="http://www.360kad.com/Medication/" target="_blank">用药指南</a>
            <a title="健康资讯" href="http://www.360kad.com/jknews/" target="_blank">健康资讯</a>
            <a class="pl16" title="皮肤科资讯" href="http://pfk.360kad.com/" target="_blank">皮肤科资讯</a>
            <a title="呼吸科资讯" href="http://hx.360kad.com/" target="_blank">呼吸科资讯</a>
            <a class="pl16" title="妇科资讯" href="http://fk.360kad.com/" target="_blank">妇科资讯</a>
            <a title="减肥瘦身" href="http://jf.360kad.com/" target="_blank">减肥瘦身</a>
            <a class="pl16" title="药品库" href="http://www.360kad.com/ypk/" target="_blank">药品库</a>

            <a title="健康问答" href="http://ask.360kad.com/" target="_blank">健康问答</a>
        </div>
      
    </li>
    <li ><a href="http://www.360kad.com/zhuanti/pc_new_seckill.shtml?kzone=miaoshapd" target="_blank">超值秒杀</a></li>
</ul>
<!--部件结束:nav_www_home-->

    </div>

</div>
<!--部件结束:nav_www_otherleft-->

   <!--部件开始:pc_pop_show,分组:通用部件-->
<!--删除弹窗-->
    <div class="kad-delete-pop" id="kad-delete-pop">
        <div class="pop-main">
            <p class="pop-title">
                温馨提示 <i class="kad-delte-closeBtn" id="kad-delte-closeBtn"></i>
            </p>
            <p class="pop-txt">
                <span class="icon err_icon01">确定从购物车中删除此商品？</span></p>
            <p class="pop-btn-box">
                <a href="javascript:void(0);" class="pop-btn-cancel" id="pop-btn-cancel" onclick="popClose('kad-delete-pop', 1);">
                </a><a href="javascript:void(0);" class="pop-btn-right" onclick="popClose('kad-delete-pop', 1);">
                </a>
            </p>
        </div>
    </div>
<!--部件结束:pc_pop_show-->

   



<div class="new-kad-center">
    <!--面包屑-->
    <div class="kad-center-nav">
        <a href="/user">我的康爱多</a> &gt; 我的收藏
    </div>
    <!--END面包屑-->
    <!--左侧 begin-->
    <style>
    a:hover { color: red; }
    .kad-center-store a:hover { color: #fff; }
</style>
<div class="kad-center-left">
    <div class="kad-center-menu">
        <h3>交易管理</h3>
        <div class="kad-center-list">
            <p><a href="/order">我的订单</a></p>
            <p><a href="/integral">我的积分</a></p>
            <p><a href="/coupon">我的优惠券</a><i id="userleftCouponCount" class="kad-center-qp"></i></p>
            <p><a href="/favorite">我的收藏</a></p>
            <p><a href="/comment">我的评论</a></p>
            
        </div>
        <h3>账户资料</h3>
        <div class="kad-center-list">
            <p><a href="/safe">安全中心</a></p>
            <p><a href="/user/edit">个人资料</a></p>
            <p><a href="/address">收货地址</a></p>
            <p><a href="/message">消息中心</a></p>
        </div>
        <h3>客户服务</h3>
        <div class="kad-center-list">
            <p><a href="/custom/refundlist">申请退换货</a></p>
            <p><a href="/custom/proposedinteractive">投诉建议</a></p>
            <p><a href="/custom/phoneCustomer">移动客服</a></p>
        </div>
    </div>
    <div class="kad-center-store">
        <p><a href="/club">会员俱乐部 GO &gt;</a></p>
    </div>
</div>
<script>
    $.ajax({
        url: "/User/CouponCount",
        cache: false,
        dataType: "json",
        success: function (result) {
            $("#userleftCouponCount").text(result);
        }
    });
</script>
    <!--左侧 end-->
    <!--右侧-->
    <div class="kad-center-right">
        <h3 class="personal-msg">我的收藏</h3>
        <div>
            <table class="myCollect-table">
                <colgroup>
                    <col class="td-shanpin" />
                    <col class="td-price" />
                    <col class="shanpin-status" />
                    <col class="td-operate" />
                </colgroup>
                <thead>
                    <tr class="row-top">
                        <td colspan="4">
                            <dl class="quanxuan">
                                <dd>
                                    <label class="checkbox-moni">
                                        <i class="">
                                            <input type="checkbox" name="chkAll" value="" />
                                        </i>
                                        <b>全选</b>
                                    </label>
                                </dd>
                                <dd><a href='javascript:void(0)' onclick="confirmPop('确定要批量取消收藏商品吗？', BatchDelete);">取消收藏</a></dd>
                                <dd><a href='javascript:void(0)' onclick="confirmPop('确定要批量购买吗？', BatchCart);" class="addtocart">加入购物车</a></dd>
                            </dl>
                        </td>
                    </tr>
                    <tr class="sep-row">
                        <td colspan="4"></td>
                    </tr>
                    <tr class="row-name">
                        <th class="td-shanpin">商品</th>
                        <th class="td-price">价格</th>
                        <th class="shanpin-status">
                            <select class="State-select" id="Stock-select">
                                <option value="0" selected>库存</option>
                                <option value="3" >现在有货</option>
                                <option value="4" >货源紧张</option>
                                <option value="5" >库存有限</option>
                                <option value="6" >暂时缺货</option>
                            </select>
                        </th>
                        <th class="td-operate">操作</th>
                    </tr>
                </thead>
                    <tbody>
                        <tr class="shanpin-list">
                            <td colspan="4" class="no-message">
                                <p>您还没收藏任何商品哦！赶快到<a href="http://www.360kad.com" target="_blank">康爱多首页</a>看看吧！</p>
                            </td>
                        </tr>
                    </tbody>
                                <tfoot>
                    <tr class="sep-row">
                        <td colspan="4"></td>
                    </tr>
                    <tr class="row-bot">
                        <td colspan="4">
                            <dl class="quanxuan">
                                <dd>
                                    <label class="checkbox-moni">
                                        <i class=""><input type="checkbox" name="chkAll" value="" /></i>
                                        <b>全选</b>
                                    </label>
                                </dd>
                                <dd><a href='javascript:void(0)' onclick="confirmPop('确定要批量取消收藏商品吗？', BatchDelete);">取消收藏</a></dd>
                                <dd><a href='javascript:void(0)' onclick="confirmPop('确定要批量购买吗？', BatchCart);" class="addtocart">加入购物车</a></dd>
                            </dl>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <!-- 页码 begin -->
                            <!-- 页码 end -->
                        </td>
                    </tr>
                </tfoot>
            </table>
        </div>
    </div>
    <!--END右侧-->
</div>
<!--END右侧-->
<!--促销活动提示框 begin-->
<div class="Notice-tips" id="Notice-tips">

</div>
<!--促销活动提示框 end-->
<!--begin暂时缺货-->
<div class="PromptBox Box-daohuo" id="qhms" style="z-index: 0; display: none; position: fixed; left: 50%; top: 50%; margin-top: -87px; margin-left: -208px;">
    <div class="BoxHead">
        <span class="BoxTitle">到货通知</span>
        <a class="go_close" href="javascript:void(0)" onclick="colse()">×</a>
    </div>
    <form id="form-txt" class="form-txt">
        <div class="BoxBody clearfix">
            <p class="Bdes">一旦商品在30日内到货，您将收到我们的邮件或短信通知，届时请留意查收。</p>
            <dl class="Blist">
                <dt>手机号码：</dt>
                <dd>
                    <input id="phone-input" type="text" name="" onblur="if(this.value==''){this.value='请输入您的电话号码'};$(this).css('color','#999');" onfocus="if(this.value=='请输入您的电话号码'){this.value=''};$(this).css('color','#333');" value="请输入您的电话号码" style="color: rgb(153, 153, 153);" />
                    <span class="BoxErrorTips"><i></i>请输入手机号码！</span>
                </dd>
                <dt>邮箱地址：</dt>
                <dd>
                    <input id="mail-input" type="text" name="" onblur=" if (this.value == '') {this.value = '请输入您的邮箱地址'};$(this).css('color', '#999'); " onfocus=" if (this.value == '请输入您的邮箱地址') {this.value = ''};$(this).css('color', '#333'); " value="请输入您的邮箱地址" />
                    <span class="BoxErrorTips1"><i></i>请输入邮箱地址！</span>
                </dd>
                <dt>验证码：</dt>
                <dd>
                    <input id="input1" type="text" onfocus="$(this).css('color','#333');" onblur="$(this).css('color','#999');" maxlength="4" style="color: rgb(153, 153, 153);" />
                    <img id="checkCode" class="code" src="static/picture/361d62086e9a4f5fbb891827a74da158.gif" alt="验证码" onclick="this.src=this.src+'?';cv_code='';" />
                    <a href="javascript:document.getElementById('checkCode').onclick();" class="a_color">换一张</a>
                    <span class="BoxErrorTips2"><i></i>请输入验证码！</span>
                </dd>
            </dl>
        </div>
        <div class="Box-operate clearfix">
            <a href="#" class="btn-blue" onclick="GoodsChecked();">确定<i></i></a>
        </div>
    </form>
</div>
<div class="PromptBox Box-tips" id="txmes" style="z-index: 9999; display: none; position: fixed; left: 52%; top: 50%; margin-top: -27px; margin-left: -208px;">
    <div class="BoxHead">
        <span class="BoxTitle">温馨提示</span>
        <a class="go_close" href="javascript:void(0)" onclick="closemes()">×</a>
    </div>
    <div class="BoxBody clearfix">
        <p class="Bcon clearfix">
            <i class="ico-tipsDui" id="ico-tipsDui"></i>
            <b id="mes">订阅成功</b> <br />
        </p>
    </div>
    <div class="Box-operate clearfix">

        <a href="javascript:void(0)" class="btn-blue" onclick="closemes()">确定<i></i></a>
    </div>
</div>
<!--end 暂时缺货-->
<!--begin需求登记-->
<!--需求登记20130907-->
<div class="PromptBox needReg_box" id="needReg_box">
    <div class="BoxHead">
        <span class="BoxTitle">需求登记</span>
        <a class="go_close" href="javascript:void(0)" id="needReg_close1">&times;</a>
    </div>
    <script type="text/javascript">
        $(function () {
            $('#needReg_close1').bind('click', function () {
                GetNeedRegList(_a);
                $('#hidden_ProductId').val(_a);
                $('#addNumber').val(1);
                $('#h_ProductType').val(0);
                $('#product_amount').val(1);
                $("#txtYtaozc a").removeClass("on");
                $('#ActivityMessage').css('display', 'block');
                $('#ActivityMessT').css('display', 'none');
                $('#buycartbutton01').show()
                $('#buycartbuttonmore').hide()
            });
        })
    </script>
    <div class="needReg_form">
        <p class="warmTips">温馨提示：提交登记后，康爱多专业药师将在10分钟内致电与您确认！</p>
        <input type="hidden" id="SingleProductNum" name="SingleProductNum" value="0" />
        <form action="" id="form_CheckOrder" name="form_CheckOrder" style="float:left;position:relative;">
            <input type="hidden" id="hidden_ProductId" name="hidden_ProductId" value="" />
            <input type="hidden" id="ocRef" name="ocRef" value="" />
            <!--套餐-->
            <div class="set_meal clearfix">
                <p class="ViperPrice" id="ViperPrice"><span class="set_mealTitle">门店价：</span><span class="ViperPrice_num"></span></p>
                <!--   **************************   增加了 style="display:none;" 用来代替被隐藏的函数功能  ******************************          -->
                <div class="newNeedF" style="display:none;">
                    <span class="set_mealTitle">套餐：</span>
                    <ul class="set_mealList" id="set_mealList"></ul>
                </div>
                <!--数量-->
                <div class="set_meal_num">
                    <span class="num_title">数量：</span><a href="javascript:void(0);" onclick="BuyQuantity2(-1);return false;" class="reduce_icon" id="reduce_icon"></a>
                    <input type="text" class="addNumber addinput_hover" value="1" id="addNumber" name="addNumber" onkeyup="NumModify2();" onblur="BuyQuantity2(0);" />
                    <a href="javascript:void(0);" onclick="BuyQuantity2(1);return false;" class="reduce_icon add_icon" id="add_icon"></a><input type="hidden" value="0" id="h_ProductType" name="h_ProductType" />
                </div>
            </div>
            <div class="person_infors clearfix">
                <!--登录名未登录-->
                <div class="login_name"><span class="login_nameTile">登录名：</span><a href="javascript:void(0);" onclick="popClose('needReg_box',false);poplayer('showLogOrReg','',true);return false;" class="get_person_address">已注册会员请快速登录，获取曾用地址</a></div>
                <!--登录后登录名-->
                <div class="logined_name"><span class="login_nameTile">登录名：</span><span class="longined_data" id="txtUserName"></span><a href="javascript:void(0);" class="fixed_address" onclick="UserAddressList();">更改地址</a></div>
                <!--姓名手机-->
                <div class="usersName">
                    <span class="usersName_l">姓名：</span><input type="text" class="usersName_txt" maxlength="40" id="txtConsignee" value="必填" onfocus="if(this.value=='必填'){this.value=''}" onblur="if(this.value==''){this.value='必填'}" name="txtConsignee" />
                    <span class="users_phone">手机：</span><input type="text" class="users_phone_txt" maxlength="11" id="txtMobilephone" name="txtMobilephone" value="必填" onfocus="if(this.value=='必填'){this.value=''}" onblur="if(this.value==''){this.value='必填'}" /><input type="hidden" id="h_AddressId" name="h_AddressId" value="0" />
                </div>
                <div class="usersAddress clearfix">
                    <span class="usersAddress_l">地址：</span> <span>
                        <select id="RegionProvince" name="RegionProvince" class="select" onchange="GetRegionCity();">
                            <option value="-1">---请选择所属的省--</option>
                        </select>
                    </span><span id="div_RegionList3">
                        <select id="RegionCity" name="RegionCity" style="display:none" class="select" onchange="GetRegionArea();"></select>
                    </span><span id="div_RegionList4">
                        <select id="RegionArea" name="RegionArea" style="display:none" class="select"></select>
                    </span><span id="showMessage"></span>
                    <input type="text" value="必填 街道名及编号、楼宇名及房间号" class="stree_txt" id="txtAddress" maxlength="50" name="txtAddress" onblur="if(this.value==''){this.value='必填 街道名及编号、楼宇名及房间号'}" onfocus="if(this.value=='必填 街道名及编号、楼宇名及房间号'){this.value=''}" />
                </div>
                <div class="remarks"><span class="remark_l">备注：</span><textarea class="stree_txt remarks_txt" value="" id="txtRemark" onpaste="return false" name="txtRemark"></textarea></div>
            </div>
            <!--提交登记-->
            <div class="submitReg"><span class="submitReg_l">如紧急，请拨打<samp>400-8811-020</samp>咨询。</span></div>
            <div class="Box-operate clearfix">
                <a href="javascript:void(0)" class="btn-blue" onclick="CheckOrderSubmit();" id="btnCheckOrder">确定<i></i></a>
            </div>
        </form>
    </div>
</div>
<!--需求登记end-->
<!--更换地址-->
<div class="PromptBox needReg_box needReg_box_1 " id="needReg_box_1" style="display:none;">
    <div class="BoxHead">
        <span class="BoxTitle">更换地址</span>
        <a class="go_close" href="javascript:void(0)" id="needReg_close2">&times;</a>
    </div>
    <script type="text/javascript">
        $(function () {
            $('#needReg_close2').bind('click', function () {
                popClose('needReg_box_1', false);
                poplayer('needReg_box', 'needReg_close1', true);
            });
        })
    </script>
    <div class="addNew_address clearfix">
        <ul id="addNew_addressUl"></ul>
        <!--确认更改-->
        <div class="rightFixed clearfix"><a href="javascript:void(0);" class="rightFixed_l" onclick="UpdateAddressId();return false;"></a><a href="javascript:void(0);" class="rightFixed_r" onclick="returnPrevLayer();"></a><a href="javascript:void(0);" class="rightFixed_m" onclick="returnPrevLayer();"></a></div>
        <!--确认更改end-->
    </div>
</div>
<!--更换地址end-->
<!--需求提交成功-->
<div class="PromptBox submitReg_success needReg_box" id="submitReg_success" style="display:none;">
    <div class="BoxHead">
        <span class="BoxTitle">需求提交成功</span>
        <a class="go_close" href="javascript:void(0)" id="needReg_close_succ">&times;</a>
    </div>
    <script type="text/javascript">
        $(function () {
            $('#needReg_close_succ').bind('click', function () {
                $('#pricenumber').html($('#h_Price').val());
            });
        })
    </script>
    <div class="congrats_box">
        <div class="congrats_box_top">
            <h3 class="mainTitle">恭喜您，需求已成功提交！</h3>
            <p>康爱多专业药师将在10分钟内致电与您确认！</p>
        </div>
        <div class="congrats_box_bottom">
            <p>温馨提示：晚上11点后提交的需求登记将在次日早上10点前给您回拔。</p>
            <p>如紧急，请拨打<span>400-8811-020</span>咨询。</p>
        </div>
    </div>
</div>
<!--需求提交成功end-->
<!--判断弹出层-->
<!--提示框 START-->
<div class="PromptBox Box-tips" id="alertDivs">
    <div class="BoxHead">
        <span class="BoxTitle">温馨提示</span>
        <a class="go_close" onclick="popClose('alertDivs',true);" id="alertDivs_tips_r" href="javascript:void(0)">&times;</a>
    </div>
    <div class="BoxBody clearfix">
        <p class="Bcon clearfix">
            <i class="ico-tipsExc"></i>
            请确认姓名/手机/地址填写完整。
        </p>
    </div>
    <div class="Box-operate clearfix">
        <a href="javascript:void(0);" class="btn-blue" onclick="poplayer('needReg_box','needReg_close1',true);;popClose('alertDivs',false);$('#layer').show();">确定<i></i></a>
    </div>
</div>
<!--提示框 END-->
<!--咨询登记弹窗20131112--><div class="rdivBox" id="rdivBox">
    <div class="rdivBoxT clearfix"><span style="float:left;">咨询登记</span><span class="rdivClose" id="rdivClose">关闭</span></div>
    <div class="rdivBoxB">
        <p>温馨提示：药师将在10分钟内与您联系，请耐心等候！</p>
        <div class="rdivBoxList clearfix"><span style="float:left;display:block;padding-top:10px;">联系方式</span><input class="Tel_bot" id="Tel_bot1" name="Tel_bot" onblur="if(this.value==''){this.value='填写手机,药师将联系您';}" onfocus="if(this.value=='填写手机,药师将联系您'){this.value='';}" style="float:left;" type="text" value="填写手机,药师将联系您" /> <input class="Tel_bi1b" onclick="PhoneBack($('#Tel_bot1').val());" style="float:left;" type="button" /> <input class="Tel_bi1b1" style="float:left;display:none;" type="button" /></div>
    </div>
</div>
<!--END咨询登记弹窗20131112-->
<!--电话成功登记 START-->
<div class="PromptBox Box-tips" id="Buy_OrdS">
    <div class="BoxHead">
        <span class="BoxTitle">成功登记</span>
        <a class="go_close" id="closeClassb" href="javascript:void(0)">&times;</a>
    </div>
    <div class="BoxBody clearfix">
        <p class="Bcon clearfix">
            <i class="ico-tipsDui"></i>
            您的信息已提交，正常在10分钟内会有药师电话回拨为您服务，请您耐心等候！<br />
            如紧急，请拨打400-8811-020咨询康爱多专业药师。<br />
            温馨提示：晚上11点后，已提交电话正常在次日早上10点前给您回拔。
        </p>
    </div>
</div>
<input id="h_RegionCity" type="hidden" value="" />
<!--电话成功登记 END-->

<script type='text/javascript'>
    function CheckOrderSubmit() {
        if (!CheckOutMsg())//校验姓名/手机/地址
        {
            if (IsLogin()) { InitCheckOrderMsg(); }
            return;
        }
        //判断购买数量限购
        var compareNum = parseInt($('#compareNum').val());
        if (parseInt($('#compareNum').val()) != 0 && parseInt($('#addNumber').val()) > compareNum) { alert('你所订购的商品超过最大限购数' + compareNum + '件'); return false; }

        $("#btnCheckOrder").hide();
        var curHrefs = window.location.href;
        if (curHrefs.indexOf('?ref=kadsearch') > -1) {
            $("#ocRef").val("kadsearch");
        }

        $.ajax({
            url: "/Order/CreateCheckOrder",
            data: $("#form_CheckOrder").serialize(),
            type: "get",
            cache: false,
            dataType: "json",
            json: 'callback',
            success: function (data) {
                switch (data) {
                    case "1": alert("手机号不能为空！"); break;
                    case "2": alert("请选择要购买的商品！"); break;
                    case "5": alert("抱歉，系统升级中，暂时不能提交！(H)"); break;
                    default:
                        {
                            if (data[0] == "0") {
                                popClose("needReg_box", true); poplayer('submitReg_success', 'needReg_close_succ', true);
                                var text = "";
                                text = "恭喜您，需求已成功提交！";
                                $('#needReg_box_1 .mainTitle').html(text);
                                $("#btnCheckOrder").show();
                                $('#RegionProvince').hide();

                                var h_ProType = $('#h_ProductType').val();//产品类型0是单品，2是套餐
                                var orderProductId = $('#h_productId').val();//订单提交时单品ID
                                var orderPackageId = $('#hPackageId').val()//订单提交时套餐ID
                                var orderNumbers = $('#addNumber').val();   //订单提交时产品数量
                                var orderProPrice = $('#SingleProductNum').val();//订单提交时产品单价

                            }
                        } break;
                }
                InitCheckOrderMsg();

            }
        });
    }

    $(function () {
        var addNumber = $('#addNumber');
        var fixed_address = $('.fixed_address');//更换地址
        var rightFixed_r = $('.rightFixed_r');//返回新增地址
        var rightFixed_m = $('.rightFixed_m');//返回不修改了

        addNumber.click(function () {
            $(this).addClass('addinput_hover');
        });

        //更换地址的显示
        fixed_address.click(function () {
            popClose("needReg_box", false);
            poplayer('needReg_box_1', 'needReg_close2', false);
        });


        //返回新增地址
        rightFixed_r.click(function () {
            $('#RegionProvince').val(-1);
            $('#RegionCity').val(-1);
            $('#RegionArea').val(-1);
            $('#txtAddress').val("");
            $('#RegionCity,#RegionArea').hide();
        })
        //关闭不修改
        rightFixed_m.click(function () {
            InitOCUserMsg();
        })

    })
</script>

<script type="text/javascript">
    var Url = "";
    var _a = 0, _b = 0;
    function ShowRegistration(productId) {
        _b = productId;
        _a = productId;
        $('#hidden_ProductId').val(_b);
        InitCheckOrderMsg();
        GetNeedRegList(_a);
        AfterProductPrices(1, _b);
        if ($('#h_ConAdobe').val() == 1) { $('#h_ConAdobe').val(0); }
        nRegNum = 1;
        GetUserMsg();  //获取用户名
        ShowNeedRegBox();//显示遮罩层
        setTimeout(function () { InitCheckOrderMsg(); }, 1000);
        if ($('#product_amount').length > 0 && $('#product_amount').val() != '') {
            $('#addNumber').val($('#product_amount').val());
        }
        $('.ViperPrice_num').html('￥' + parseFloat($('#SingleProductNum').val() * $('#addNumber').val()).toFixed(2));
        if (!$("#txtYtaozc a").hasClass("on")) { $("#tobuyone").click(); $("#h_ProductType").val(0); }
        Url = document.URL;
        if (Url.indexOf("?") > -1) {
            Url += "&open=1"
        }
        else {
            Url += "?open=1"
        }
        if (document.URL.indexOf("open=1") > 0) {
            setTimeout(function () { $('#h_ConAdobe').val(0); jQuery("#buy_bi1b").click(); }, 1000);
        }

        jQuery("#Buy_OrdSclo").click(function () { jQuery("#Buy_OrdS").css("display", "none"); });
        //处方药与非处方药温馨提示状态切换
        if ($("#h_rxotc").val() == "rx" || $("#h_rxotc").val() == "rxa" || $("#h_rxotc").val() == "rxb") {
            $('#Rx_note').css('display', 'inline'); $('#Otc_note').css('display', 'none');
        } else { $('#Rx_note').css('display', 'none'); $('#Otc_note').css('display', 'inline'); };
    }

    //电话回访
    function PhoneBack(phoneTxt) {
        $('.Tel_bi1b').css('display', 'none'); $('.Tel_bi1b1').css('display', 'block');
        if ($.trim(phoneTxt) == '') {
            $('.Tel_bi1b1').css('display', 'none');
            $('.Tel_bi1b').css('display', 'block');

            $("#phoneTxt").focus();
            var _messageTel2 = '<i class="ico-tipsExc"></i>请填写电话回拨！';
            showPrompt(_messageTel2, 0, 1);
            return false;
        }
        //获取当前href
        var curHref = window.location.href;
        var mobilePhoneReg = /^(\d{11}$)/;
        var telphoneReg = /^(\d{3}-\d{8}|\d{4}-\d{7})$/;
        if (mobilePhoneReg.exec($.trim(phoneTxt)) || telphoneReg.exec($.trim(phoneTxt))) {
            $('#h_CurrentUrl').val(curHref);
            $('#txtPhoneCall').val(phoneTxt);
            if (curHref.indexOf('?ref=kadsearch') > -1) {
                $("#ocRef_p").val("kadsearch");
            }
            $.ajax({
                type: 'get',
                url: "/Order/CreateCheckOrderPhone",
                cache: false,
                dataType: "json",
                data: $("#form_CreateOrder_Phone").serialize(),
                json: 'callback',
                success: function (data) {
                    if (data == "5") { alert("抱歉，系统升级中，暂时不能提交！(H)"); return false; }
                    if (data[0] == "0") {
                        $('#Tel_bot,#Tel_bot1').val(' ');
                        $('#txtPhoneCall').val('');
                        poplayer('Buy_OrdS', 'closeClassb', true);
                        $('.Tel_bi1b1').css('display', 'none');
                        $('.Tel_bi1b').css('display', 'block');

                        var h_ProType = $('#h_ProductType').val();//产品类型0是单品，2是套餐
                        var orderProductId = $('#h_productId').val();//订单提交时单品ID
                        var orderPackageId = $('#hPackageId').val()//订单提交时套餐ID
                        var orderNumbers = $('#addNumber').val();   //订单提交时产品数量
                        var orderProPrice = $('#SingleProductNum').val();//订单提交时产品单价

                        $('#rdivBox').css('display', 'none');
                        $('#h_ProductType_Phone').val(0);
                    }
                    else {
                        alert("提交失败");
                        $('.Tel_bi1b1').css('display', 'none'); $('.Tel_bi1b').css('display', 'block');

                    }

                }
            })
        }
        else {
            $("#phoneTxt").focus();
            $('.Tel_bi1b1').css('display', 'none');
            $('.Tel_bi1b').css('display', 'block');
            var _messageTel = '<i class="ico-tipsExc"></i>请输入正确的电话号码！<br>如手机号：13900000000<br>或电话：010-66666666或0662-8989888！';
            showPrompt(_messageTel, 0, 1);
            return false;
        }
    }
</script>

<script type="text/javascript">
    //读取用户初始信息
    function InitAddressMsg(dataAddress) {
        $("#RegionProvince").val(dataAddress.ProvinceCode);

        GetRegionProvice(dataAddress.ProvinceCode);

        GetRegionCity(dataAddress.CityCode);
        setTimeout(function () {
            $("#RegionCity").val(dataAddress.CityCode);
            GetRegionArea(dataAddress.DistrictCode);
            setTimeout(function () {
                $("#RegionArea").val(dataAddress.DistrictCode);
                $("#txtAddress").val(dataAddress.Address);
            }, 100);
        }, 50);
    }


    //获取用户信息
    function GetFastOrderMsg(pid, q, proType, type) {
        if (pid == "" || q == "") {
            return;
        }
        var url = location.href;
        $.ajax({
            url: "/Address/GetDefault",
            data: { proId: pid, proType: proType, type: type, url: url },
            type: "get",
            async: false,
            dataType: "json",
            success: function (data) {
                if (type == 0) {
                    $("#h_ProductType").val(proType);
                    if (data != null) {
                        $("#txtMobilephone").val(data.MobilePhone);
                        $("#txtConsignee").val(data.Accepter);
                        $("#h_AddressId ").val(data.ID);
                        InitAddressMsg(data);
                        $('#h_RegionCity').val(data.CityCode)
                    }
                    else {
                        GetRegionProvice();
                    }
                }
                else {
                    $("#h_CurrentUrl").val(url);
                    $("#h_ProductId_Phone").val(pid);
                    $("#h_ProductType_Phone").val(proType);
                }
            }
        });
    }

    function CheckOrderPhoneSubmit() {
        $("#btnCheckOrderPhone").hide();
        $.ajax({
            url: "/Order/CreateCheckOrderPhone",
            data: $("#form_CheckOrder_Phone").serialize(),
            type: "get",
            cache: false,
            dataType: 'json',
            json: 'callback',
            success: function (data) {
                switch (data) {
                    case "1": alert("手机号不能为空！"); break;
                    case "2": alert("请选择要购买的商品！"); break;
                    case "5": alert("抱歉，系统升级中，暂时不能提交！(H)"); break;
                    default: alert("抱歉，系统升级中，暂时不能提交！");
                }
                $("#btnCheckOrderPhone").show();
            },
            error: function () {
                $("#btnCheckOrderPhone").show();
            }
        });
    }

    function GetRegionProvice(addressid) {
        GetAddressList(addressid, 0)

    }
    function GetRegionCity(addressid) {
        $("#RegionCity").show();
        GetAddressList(addressid, 1)

    }
    function GetRegionArea(addressid) {
        $("#RegionArea").show();
        GetAddressList(addressid, 2)
    }

    //获取地址列表
    function GetAddressList(addressid, action) {
        var parentId = 0;
        var showId = ["RegionProvince", "RegionCity", "RegionArea"];
        var topOpt = ["请选择省份", "请选择城市", "请选择区县"];
        switch (action) {
            case 0:
                parentId = 0;
                break;
            case 1:
                parentId = $("#RegionProvince").val();
                break;
            case 2:
                parentId = $('#h_RegionCity').val();
                if (parentId == "")
                { parentId = $('#RegionCity').val(); }
                break;
        }
        for (var i = action == 0 ? 1 : action; i < showId.length; i++) {
            $("#" + showId[i]).html(ListToSelect([], topOpt[i]));
            //在没有获取到数据的情况下显示省市区？
        }
        jQuery.ajax({
            url: "/Address/GetAddressList",
            data: { parentId: parentId, selectId: action },
            type: "post",
            cache: false,
            dataType: "json",
            success: function (data) {
                if (data.length > 0) {
                    $("#" + showId[action]).css("display", "");
                    $("#" + showId[action]).html(ListToSelect(data, topOpt[action], addressid));
                }
                else {
                    $("#" + showId[action]).css("display", "none");
                    $("#" + showId[action]).val("");
                }
            }
        });
    }

    /*list转为select下拉框*/
    function ListToSelect(data, topOpt, addressid) {
        var str = ['<option value="-1">' + topOpt + '</option>'];
        for (var i = 0; i < data.length; i++) {
            var id = data[i].Id;
            var name = data[i].Name;
            if (id == addressid) {
                str.push('<option value="' + id + '" selected="selected">' + name + '</option>');
            } else {
                str.push('<option value="' + id + '">' + name + '</option>');
            }

        }
        return str.join();
    }

    function GetUserMsg() {
        jQuery.ajax({
            type: "Get",
            url: "/Login/GetUserInfo",
            cache: false,
            dataType: "jsonp",
            jsonp: "callback",
            success: function (data) {
                if (data["IsLogin"] == false) { return; }
                $('#txtUserName').text(data["userName"]);
            }
        });
    }

    //需求登记获取单品或套餐
    function GetNeedRegList(productId) {
        jQuery.ajax({
            url: "/product/KitList?id=" + productId,
            type: "get",
            cache: false,
            dataType: "json",
            success: function (data) {
                $('#h_ConAdobe').val(1);
                var _dataResult_length = data.Result.length;
                if (_dataResult_length > 0) {
                    $('.newNeedF').show();
                    var str = "", _index = "";
                    for (var i = 0; i < _dataResult_length; i++) {
                        var oprice = data.Result[i].OriginPrice, pprice = data.Result[i].KitPrice;
                        var packcartfun_2 = "packcartfun4('" + data.Result[i].PrmCode + "','" + oprice + "','" + pprice + "')";
                        var buy1str = "<li><a class='tobuyone' id='tobuyone' href='javascript:void(0)' >一件体验装</a></li>";
                        str += "<li><a  class='tobuypackage' onclick=\"$('#hidden_ProductId').val(" + data.Result[i].PrmCode + ");" + packcartfun_2 + "\" href='javascript:void(0)'>" + data.Result[i].PrmName + "</a></li>";
                    }
                    $("#set_mealList").html(buy1str + str);
                    $("#productpackage").show(); $(".infocon .marprice").hide();
                    $("#set_mealList li a").click(function () { $(this).parent('li').addClass('addLi_hover'); $(this).parent('li').siblings().removeClass('addLi_hover'); return false; })
                    $("#set_mealList .tobuypackage").click(function () {
                        if ($("#hPopVal").val() == 0 && !$("#txtYtaozc a").hasClass("on")) { $('#h_ProductType').val(2); }
                    });
                    $("#tobuyone").click(function () {
                        $('#hidden_ProductId').val(_a);
                        $('#h_ProductType').val(0);
                        AfterProductPrices($('#addNumber').val(), $('#hidden_ProductId').val());
                    });

                } else {

                    $('#ViperPrice .ViperPrice_num').html("￥" + parseFloat(_c * parseInt($('#addNumber').val())).toFixed(2));
                    $('#SingleProductNum').val(_c);
                    $('#addNumber').val(1);
                    $('.newNeedF').hide();
                }
            }
        });
    }

    function packcartfun4(id, oprice, pprice) {
        $("#SingleProductNum").val(pprice);
        $("#hPackageId").val(id);
        jQuery("#ViperPrice .ViperPrice_num").html("￥" + parseFloat(pprice * parseInt($('#addNumber').val())).toFixed(2));
        if ($("#hPopVal").val() == 0) { $('#h_ProductType').val(0); } else {
            $('#h_ProductType').val(2);
        }
    }

    //专题需求登记获取套餐
    function GetNeedRegList2(packageId, kType) {
        $("#h_ProductType").val(2);
        jQuery.ajax({
            url: "/product/GetKit?prmCode=" + packageId,
            type: "get",
            cache: false,
            dataType: "json",
            success: function (data) {
                var str = "<li><a herf='javascript:void(0);'>" + data.PrmName + "</a></li>";
                $('#set_mealList').html(str);
                $('#SingleProductNum').val(data.KitPrice);
                if (kType == 1) {
                    $('.ViperPrice_num').html('￥' + parseFloat(data.KitPrice).toFixed(2));//专题、详情页处方套餐需要在GetNeedRegList2(packageId,kType)这个方法传一个kType形参1进来做判断，不需要乘以外边的数量
                } else {
                    $('.ViperPrice_num').html('￥' + parseFloat(data.KitPrice * $('#addNumber').val()).toFixed(2));//非处方套餐含有处方药
                }
                $("#set_mealList li").addClass("addLi_hover");
            }
        });
    }
    //套餐end

    //获取单品详细信息
    function addCart_rx1(num, productId) {
        $("#h_ProductType").val(0);
        $("#addNumber").val(1);
        $("#set_mealList li").hide();
        $("#hidden_ProductId").val(productId);
        $('.newNeedF').hide();
        AfterProductPrices(num, $("#hidden_ProductId").val());
        $('#addNumber').val(num);
        ShowNeedRegBox();
        GetUserMsg();
        InitCheckOrderMsg();
    }
    //内容处调用处方电话回拨_旧办法
    function addPackage_rx1(aPrid) {
        $('#h_ProductType_Phone').val(2);
        $('#h_ProductId_Phone').val(aPrid);
        poplayer('rdivBox', 'rdivClose', true);
    }
    //内容处调用处方登记_类型数量
    function addPackage_rxNum(aPrid, num, type) {
        GetNeedRegList2(aPrid);
        $("#hidden_ProductId").val(aPrid);
        $('#h_ProductType').val(type);
        $("#addNumber").val(num); //专题默认初始套餐数量
        $('.newNeedF .set_mealTitle,.newNeedF').show();
        $('#ViperPrice .ViperPrice_num').html('￥' + parseFloat($('#SingleProductNum').val() * $("#addNumber").val()).toFixed(2));
        ShowNeedRegBox();
        GetUserMsg();
        InitCheckOrderMsg();
    }
    //获取套餐详细信息
    function addPackage_rx(packageId, kType) {//传形参kType=1进来，如果是专题套餐数量初始值：$("#addNumber").val(1);详情页的话直接拿相对应的数量值：$("#addNumber").val($('#product_amount').val());
        GetNeedRegList2(packageId);
        $("#hidden_ProductId").val(packageId);
        if (kType == 1) {
            $("#addNumber").val(1); //专题默认初始套餐数量
        } else {
            $("#addNumber").val($('#product_amount').val());
        }
        $('.newNeedF .set_mealTitle,.newNeedF').show();
        $('#ViperPrice .ViperPrice_num').html('￥' + parseFloat($('#SingleProductNum').val() * $("#addNumber").val()).toFixed(2));
        ShowNeedRegBox();

        GetUserMsg();
    }
    //展示产品优惠后价格
    function AfterProductPrices(num, productId) {
        $('#h_ProductType').val(0);
        $.ajax({
            type: 'get',
            url: '/Product/GetPrice?productId=' + productId,
            cache: false,
            dataType: 'json',
            success: function (data) {
                $('#SingleProductNum').val(data.SalePrice);
                var productNumbers = '￥' + (parseFloat(data.SalePrice) * num).toFixed(2);
                $('#ViperPrice .ViperPrice_num').html(productNumbers);
            }

        })
    }


    //用户地址列表
    function UserAddressList() {
        $('#addNew_addressUl').html("");
        $.ajax({
            type: "GET",
            url: "/Address/GetUserAddressList",
            cache: false,
            dataType: "json",
            json: "callback",
            error: function () { },
            success: function (data) {
                if (data) {
                    var str = "";
                    for (var i = 0; i < data.length; i++) {
                        if (data[i].IsDefault) {
                            //默认地址
                            str += '<li><input type="radio" class="clicked_r radAddressId" name="checekRad" checked="checked" index="' + data[i].ID + '" /><p class="newaddress_txt">' + data[i].Province + data[i].City + data[i].District + data[i].Address + data[i].Accepter + " 联系方式：" + data[i].MobilePhone + '</p></li>';
                        } else {
                            //非默认地址
                            str += '<li><input type="radio" name="checekRad"  class="clicked_r radAddressId" index="' + data[i].ID + '" /><p class="newaddress_txt">' + data[i].Province + data[i].City + data[i].District + data[i].Address + data[i].Accepter + " 联系方式：" + data[i].MobilePhone + '</p></li>';
                        }
                    }

                    if (data.length > 0) {
                        $('#addNew_addressUl').html(str);
                    } else {
                        var str1 = "<h3 style='text-align:center;'>地址列表为空，请返回新增地址，谢谢！</h>";
                        $('#addNew_addressUl').html(str1);
                    }
                }
            }
        });
        $("#needReg_box_1").attr("display", "block");
        poplayer("needReg_box_1", true);
    }

    function UpdateAddressId() {
        var addressId = $(".radAddressId:checked").eq(0).attr("index");
        Default(addressId);
        returnPrevLayer();
    }

    //返回上一个层
    function returnPrevLayer() {
        popClose("needReg_box_1", true);
        poplayer("needReg_box", "needReg_close1", true);
    }

    //设置为默认
    function Default(id) {
        jQuery.ajax({
            url: "/Address/SetDefault?AddressId=" + id,
            type: "get",
            cache: false,
            dataType: 'json',
            success: function (data) {
                if (data) {
                    InitOCUserMsg();
                    ShowNeedRegBox();
                }
                else {
                    ShowNeedRegBox();
                }
            }
        });
    }

    function InitCheckOrderMsg() {
        //是否登录的切换状态
        if (!IsLogin()) { $('.login_name').show(); $('.logined_name').hide(); } else { $('.login_name').hide(); $('.logined_name').show(); }
        $('.usersName_txt').val('必填');
        $('.users_phone_txt').val('必填');
        $('#txtAddress').val('必填 街道名及编号、楼宇名及房间号');
        $('.province_txt,.city_txt,.town_txt,#txtRemark').val('');
        $("#form_CheckOrder input[type=hidden][id!=h_ProductType][id!=hidden_ProductId]").val("");//清空隐藏字段默认信息

        $('#RegionProvince').val(-1);
        $('#RegionProvince').show();
        $('#RegionCity,#RegionArea').hide();

        var pid = $('#hidden_ProductId').val();
        var q = $('#addNumber').val();
        var proType = $('#h_ProductType').val();
        GetFastOrderMsg(pid, q, proType, 0);//2015-4-23----------------------------------------------------------------
        GetUserMsg();
    }
    //显示遮罩层
    function ShowNeedRegBox() {
        poplayer("needReg_box", "needReg_close1", true);

    }
    //校验信息
    function CheckOutMsg() {
        var mobilePhoneRegs = /^(\d{11}$)/;
        var PhoneNumbers = $('#txtMobilephone').val();

        if ($.trim($('#txtConsignee').val()) == '' || $('#txtConsignee').val() == '必填' || $.trim($('#txtMobilephone').val()) == '' || $('#txtMobilephone').val() == '必填' || $('#txtMobilephone').val().length < 11 || $.trim($('#txtAddress').val()) == '' || $('#txtAddress').val() == '必填 街道名及编号、楼宇名及房间号') {
            popClose("needReg_box", true);
            poplayer("alertDivs", "alertDivs_tips_r", true);
            $('#alertDivs .alertTxt_title').html('请确认姓名/手机/地址填写完整。');

            return false;
        } else if (!mobilePhoneRegs.exec(PhoneNumbers)) {
            popClose("needReg_box", true);
            poplayer("alertDivs", "alertDivs_tips_r", true);
            $('#alertDivs .alertTxt_title').html('请输入正确的手机号码！');

            return false;
        }
        else if (!$('#addNumber').is('.addinput_hover')) {
            popClose("needReg_box", true);
            poplayer("alertDivs", "alertDivs_tips_r", true);
            $('#alertDivs .alertTxt_title').html('请确认您需要的数量，以便登记。');
            //adobe_shuliang();
            return false;
        }
        else if ($('#RegionProvince').val() == '-1') {
            popClose("needReg_box", true);
            poplayer("alertDivs", "alertDivs_tips_r", true);
            $('#alertDivs .alertTxt_title').html('请选择您所在的省份，以便登记。');

            return false;
        } else if ($('#RegionCity').val() == '-1') {
            popClose("needReg_box", true); poplayer("alertDivs", "alertDivs_tips_r", true);
            $('#alertDivs .alertTxt_title').html('请选择您所在的城市，以便登记。');
            return false;
        } else if ($('#RegionArea').val() == '-1') {
            if ($('#RegionArea').css('display', 'none')) {
                return true;
            } else {
                popClose("needReg_box", true); poplayer("alertDivs", "alertDivs_tips_r", true);
                $('#alertDivs .alertTxt_title').html('请选择您所在的地区，以便登记。');
                return false;
            }
        }
        return true;
    }


    //详情页内部购买数量（数量加减）
    function BuyQuantity1(quantity) {
        var q = jQuery("#product_amount").val();
        if (isNaN(q)) { jQuery("#product_amount").val(1); return false; }
        var total = parseInt(q) + parseInt(quantity);
        if (total == 0) { $('.ViperPrice_num').html('￥' + parseFloat($('#SingleProductNum').val()).toFixed(2)); } else { $('.ViperPrice_num').html('￥' + parseFloat(total * $('#SingleProductNum').val()).toFixed(2)); }
        if (parseInt(total) > 0) { jQuery("#product_amount").val(total); }
    }

    //需求登记判断商品数量为0时自动+1
    function NumModify2() {
        if ($('#addNumber').val() <= 0) { $('#addNumber').val(1); $('#addNumber').focus(); if ($('#h_ProductType').val() == 0) { AfterProductPrices(1, $('#hidden_ProductId').val()); } else { $('.ViperPrice_num').html('￥' + parseFloat($('#SingleProductNum').val()).toFixed(2)); }; alert("请输入正确的数量！"); }
        if ($('#addNumber').val() > 999) { $('#addNumber').val(1); $('#addNumber').focus(); if ($('#h_ProductType').val() == 0) { AfterProductPrices(1, $('#hidden_ProductId').val()); } else { $('.ViperPrice_num').html('￥' + parseFloat($('#SingleProductNum').val()).toFixed(2)); }; alert("请输入正确的数量！"); }
    }
    //需求登记购买数量（数量加减）
    function BuyQuantity2(quantity) {
        var q = $.trim(jQuery("#addNumber").val());
        var total = parseInt(q) + parseInt(quantity);
        if (isNaN(q) || q > 999 || q < 0) { jQuery("#addNumber").val(1); if ($('#h_ProductType').val() == 0) { AfterProductPrices(1, $('#hidden_ProductId').val()); } else { $('.ViperPrice_num').html('￥' + parseFloat($('#SingleProductNum').val()).toFixed(2)); } return false; }

        if (total == 0) { $('.ViperPrice_num').html('￥' + parseFloat($('#SingleProductNum').val()).toFixed(2)); } else { if ($('#h_ProductType').val() == 0) { AfterProductPrices(total, $('#hidden_ProductId').val()); } else { $('.ViperPrice_num').html('￥' + parseFloat(total * $('#SingleProductNum').val()).toFixed(2)); } }
        if (parseInt(total) > 0) { jQuery("#addNumber").val(total); }
    }

    function InitOCUserMsg() {
        var pid = $('#hidden_ProductId').val();
        var q = $('#addNumber').val();
        var proType = $('#h_ProductType').val();
        GetFastOrderMsg(pid, q, proType, 0);

        //是否登录的切换状态
        if (IsLogin()) { $('.logined_name').show(); $('.login_name').hide(); $('.newYesLogin').show(); $('.newNoLogin').hide(); } else { $('.login_name').show(); $('.logined_name').hide(); $('.newYesLogin').hide(); $('.newNoLogin').show(); }
        ShowNeedRegBox();//弹出遮罩

    }
</script>
<!--end需求登记-->
<!--部件开始:www_addcart_common,分组:通用部件-->
<!--加入购物车弹出窗-->
<style>

.lookshopcart{ width:533px;border:solid 1px #0080d5; text-align:left; background:#FFF; display:none; padding:5px 10px 20px 10px; overflow:hidden; clear:both; z-index:10000; position:fixed;left:32%; top:20% }
*html .lookshopcart{ width:533px;border:solid 1px #0080d5; text-align:left; background:#FFF; display:none; padding:5px 10px 20px 10px; overflow:hidden; clear:both; z-index:10000; position:absolute;left:32%;top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-452))}
.cart_yes{ width:191px;height:97px;float:left;}
.cart_info{color:#404040; padding-left:20px; line-height:27px;width:310px; float:left;}.cart_title{font-size:14px; font-weight:bold}
#lookshopcart .cart_info a{background:url(static/images/p_btn_bg08.gif) no-repeat 0px 0px; display:block;width:86px;height:26px;float:left; margin-top:7px;}
.lookshopcart b{font-size:14px} .look_close{height:20px; text-align:right;} .look_close a{color:#a0a0a0;}
#payshopcart .cart_info a{background:url(static/images/p_btn_bg08.gif) no-repeat 0px -26px;width:98px; display:block;height:26px;float:left; margin-top:7px;}
.alsobuy_cart{ width:520px; overflow:hidden;  border-top:1px dotted #666666; margin-top: 6px; padding-top: 6px;}
.alsobuy_cart ul li{  float:left; margin-right:13px; width: 90px;}  .alsobuy_cart ul li img{ width:88px;border: 1px solid #E3E3E3;}
.alsobuy_cart ul li p.title,.alsobuy_cart ul li p.num{ height:20px;line-height:20px;  overflow:hidden;}
.alsobuy_cart ul li p.price{ color: #f00; font-family: "Lucida Grande",Arial,Lucida,Verdana,Helvetica,"宋体",sans-serif; }

</style>
<script src="static/js/public_common.js" type="text/javascript"></script>
    <div id="payshopcart" class="lookshopcart">
	<p class="look_close"><a href="javascript:void(0);" id="closethis3"><b> <img style="margin-right:5px;" src="static/picture/cart02_0406.gif" /></b>关闭</a></p>
	<div class="cart_yes"><img src="static/picture/cart01_0406.gif" /></div>
	<div class="cart_info" >
		<p class="cart_title">商品已成功添加到购物车！</p>
		<p>购物车共有<label class="cartCount">0</label> 件,合计：<label class="cartTotal cRed">0</label>元</p>
		<p><img src="static/picture/cart03_0406.gif" usemap="#Map_cart" /><map name="Map_cart" id="Map_cart"><area shape="rect" coords="1,1,110,31" href="http://cart.360kad.com/cart" /><area shape="rect" coords="117,0,218,38" href="javascript:void(0);"   id="closethis4" /></map></p>	
	</div>
</div>

<!--加入购物车弹出窗-->
<!--部件结束:www_addcart_common-->

<input type="hidden" id="h_FavoriteId" value="0" />
<input type="hidden" id="h_ProductId" value="0" />
<input type="hidden" id="h_Quantity" value="0" />

   <!--底部 begin-->
    <!--部件开始:Footer_LastNew,分组:页脚部件-->
<div class="wrap_footer">
    <div class="item01">
        <div class="width1200">
            <img src="static/picture/fxgbenner.png" alt="放心购">
            <a class="safeBuy" style="background:#fff;opacity:0;filter:alpha(opacity=0);" title="放心购" href="http://www.360kad.com/zhuanti/trust.shtml?kzone=fxg_foot_pc" target="_blank"></a>
        </div>
    </div>
    <!--康爱多掌上药店-->
    <div class="item01 item02">
        <div class="width1200 clearfix">
            <div class="lside">
                <div class="appCode">
                    <p class="title">手机购药</p>
                    <p class="code"></p>
                    <p class="clearfix pl8">
                        <span class="ios"><a href="http://um0.cn/2Vawnt/?kzone=ios_foot_pc" target="_blank"></a></span>
                        <span class="line"></span>
                        <span class="android"><a href="http://res.360kad.com/app/k/kad.apk?kzone=android_foot_pc" target="_blank"></a></span>
                    </p>
                </div>
                <div class="weixinCode">
                    <p class="title">微信购药</p>
                    <p class="code" style="background:url(static/images/code1.jpg) no-repeat center center;background-size:106px 106px;"></p>
                    <p class="title02" style="width:106px;margin:0;">
                        抽现金红包
                    </p>
                </div>
            </div>
            <div class="mside">
                <ul class="clearfix">
                    <li>
                        <p class="title">新手指南</p>
                        <p><a href="http://help.360kad.com/Shopping/shopWm?kzone=gwlc_foot_pc" target="_blank" rel="nofollow">购物流程</a></p>
                        <p><a href="http://help.360kad.com/Novice/VipClass?kzone=hyjb_foot_pc" target="_blank" rel="nofollow">会员级别</a></p>
                        <p><a href="http://help.360kad.com/Novice/IntegralDesc?kzone=jfsm_foot_pc" target="_blank" rel="nofollow">积分说明</a></p>
                        <p><a href="http://help.360kad.com/Pay/Coupon?kzone=yhj_foot_pc" target="_blank" rel="nofollow">优惠券</a></p>
                        <p><a href="http://help.360kad.com/Novice/Question?kzone=cjwt_foot_pc" target="_blank" rel="nofollow">常见问题</a></p>
                    </li>
                    <li>
                        <p class="title">配送方式</p>
                        <p><a href="http://help.360kad.com/Delivery/Freight?kzone=psfw_foot_pc" target="_blank" rel="nofollow">配送范围及运费</a></p>
                        <p><a href="http://help.360kad.com/Delivery/Privsend?kzone=ysps_foot_pc" target="_blank" rel="nofollow">隐私配送</a></p>
                        <p><a href="http://help.360kad.com/Delivery/Receipt?kzone=spys_foot_pc" target="_blank" rel="nofollow">商品验收及签收</a></p>
                    </li>
                    <li>
                        <p class="title">支付方式</p>
                        <p><a href="http://help.360kad.com/Pay/Cash?kzone=hdfk_foot_pc" target="_blank" rel="nofollow">货到付款</a></p>
                        <p><a href="http://help.360kad.com/Pay/OnlinePay?kzone=wszf_foot_pc" target="_blank" rel="nofollow">网上支付</a></p>
                        <p><a href="http://help.360kad.com/Pay/Mention?kzone=ydzt_foot_pc" target="_blank" rel="nofollow">药店自提</a></p>
                    </li>
                    <li>
                        <p class="title">售后服务</p>
                        <p><a href="http://help.360kad.com/SaleAfter/ReturnsFlow?kzone=thhlc_foot_pc" target="_blank" rel="nofollow">退换货流程</a></p>
                        <p><a href="http://help.360kad.com/SaleAfter/ReturnsPolicy?kzone=thhzc_foot_pc" target="_blank" rel="nofollow">退换货政策</a></p>
                        <p><a href="http://help.360kad.com/SaleAfter/RefundFlow?kzone=tklc_foot_pc" target="_blank" rel="nofollow">退款流程</a></p>
                    </li>
                    <li>
                        <p class="title">特色服务</p>
                        <p><a href="http://user.360kad.com/club?kzone=hyjlb_foot_pc" target="_blank" rel="nofollow">会员俱乐部</a></p>
                        <p><a href="http://help.360kad.com/Feature/TouSuJianYi?kzone=tsjy_foot_pc" target="_blank" rel="nofollow">投诉建议</a></p>
                        <p><a href="http://help.360kad.com/Feature/YongYaoZiXun?kzone=yyzx_foot_pc" target="_blank" rel="nofollow">用药咨询 </a></p>
                        <p><a href="http://help.360kad.com/Feature/MianZeShengMing?kzone=mzsm_foot_pc" target="_blank" rel="nofollow">免责声明 </a></p>
                    </li>
                    <li class="phonePic">
                        <p><img src="static/picture/kadphonebg.png" alt=""></p>
                        <p class="pt4">订购服务时间：8:30-23:00</p>
                        <p>售后服务时间：9:00-22:30</p>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!--END康爱多掌上药店-->
</div>
<div class="footer_list">
    <div class="width1200">
    <!--    <p><span class="title">战略企业：</span><a href="http://www.taiantang.net/" target="_blank" rel="nofollow">太安堂集团有限公司 (股票代码：002433)</a></p> -->
        <p>
            <span class="title">政府机构：</span><a href="http://www.nhc.gov.cn/" target="_blank" rel="nofollow">国家卫生健康委员会</a>
            <a href="http://www.sda.gov.cn/" target="_blank" rel="nofollow">国家食品药品监督管理局</a>
            <a href="http://wsjkw.gd.gov.cn/" target="_blank" rel="nofollow">广东省卫生健康委员会</a>
            <a href="http://www.gdda.gov.cn/" target="_blank" rel="nofollow">广东省药品监督管理局</a>
<a href="http://www.nmpa.gov.cn" target="_blank" rel="nofollow">国家药品监督管理局</a><a href="http://amr.gd.gov.cn/" target="_blank" rel="nofollow">广东省市场监督管理局</a>
        </p> 

        <!--关于康爱多网上药店-->
        <p class="aboutKadList">
            <a rel="nofollow" href="http://help.360kad.com/AboutKad/kadJieShao" target="_blank">关于我们</a> |
            <a href="http://www.360kad.com/zhuanti/kad_zsyd.shtml" target="_blank" rel="nofollow">掌上药店</a> |
            <a rel="nofollow" href="http://help.360kad.com/about/entitygz" target=" _blank">实体药店</a> |
            <a rel="nofollow" href="http://help.360kad.com/AboutKad/JiaRuKangAiDuo" target="_blank">加入康爱多</a> |
            <a href="http://help.360kad.com/AboutKad/LianXiWoMen" target="_blank" rel="nofollow">联系我们</a>  |
            <a href="http://www.360kad.com/zhuanti/service_provder.shtml" target="_blank" rel="nofollow">厂商合作</a>  |
            <a href="http://help.360kad.com/AboutKad/JingYingRenZheng" rel="nofollow" target="_blank">经营认证</a> |
            <a rel="nofollow" href="//help.360kad.com/Shopping/YinSiShengMing" target="_blank">隐私政策</a> |
            <a rel="nofollow" href="http://help.360kad.com/About/FriendlyLink" target="_blank">友情链接</a> |
            <a href="http://www.360kad.com/TagList.aspx" target="_blank">TAG列表</a> |
            <a href="http://www.360kad.com/SiteMap.shtml" target="_blank">网站地图</a> |
            <a href="http://cps.360kad.com/" target="_blank">CPS联盟</a>
        </p>
        <p class="diploma_list">
            <a class="pr8" rel="nofollow" title="互联网药品交易服务资格证书" target="_blank" href="http://help.360kad.com/about/AuthenBusiness">互联网药品交易服务资格证书</a>|
            <span class="bottomPadding01">
                <a rel="nofollow" title="互联网药品信息服务资格证书" target="_blank" href="http://help.360kad.com/About/AuthenInfo">互联网药品信息服务资格证书</a>
            </span>|
            <span class="bottomPadding01">
                <a rel="nofollow" title="执业药师证" target="_blank" href="http://help.360kad.com/About/AuthenPractice">执业药师证</a>
            </span>|
            <span class="bottomPadding02">
                <a rel="nofollow" title="药品经营许可证" target="_blank" href="http://help.360kad.com/About/AuthenManage">药品经营许可证</a>
            </span>|

            <span class="bottomPadding02">
                <a rel="nofollow" title="食品经营许可证" target="_blank" href="http://help.360kad.com/About/AuthenLiuTong">食品经营许可证</a>
            </span>|
            <span class="bottomPadding02">
                <a rel="nofollow" title="公司营业执照" target="_blank" href="http://help.360kad.com/About/Authen">公司营业执照</a>
            </span>|
            <span>
                <a rel="nofollow" title="GSP认证证书" target="_blank" href="http://help.360kad.com/About/AuthenGSP">GSP认证证书</a>
            </span>|
            <span>
                <a href="http://help.360kad.com/About/AuthenTeleservice" target="_blank" rel="nofollow">增值电信业务经营许可证 &nbsp;</a>
            </span>
        </p>
        <!--END关于康爱多网上药店-->
        <!--行业认证-->
        <ul class="hyRz clearfix">
            <li>
                <a rel="nofollow" href="http://beian.miit.gov.cn/state/outPortal/loginPortal.action" target="_blank" title="粤ICP备10212320号-1">
                    <img src="static/picture/tool_icon1.png" alt="粤ICP备10212320号-1" style="display: inline;">
                </a>
                <a class="txt" rel="nofollow" title="粤ICP备10212320号" target="_blank" href="http://beian.miit.gov.cn/state/outPortal/loginPortal.action">粤ICP备10212320号</a>
            </li>
            <li>
                <a rel="nofollow" href="http://www.gdnet110.gov.cn/" target="_blank" title="网络110报警服务">
                    <img src="static/picture/tool_icon2.png" alt="网络110报警服务" style="display: inline;">
                </a>
                <a class="txt item01" rel="nofollow" title="网络110报警服务" target="_blank" href="http://www.gdnet110.gov.cn/">
                    网络110报警服务
                </a>
            </li>
         <!--   <li>
                <a rel="nofollow" href="http://bcp.12312.gov.cn/chengxin?d=3793755&amp;t=101" target="_blank" title="诚信经营示范单位">
                    <img data-original="static/picture/tool_icon4.jpg" src="https://res.360kad.com/theme/default/img/tool_icon4.jpg" alt="" style="display: inline;">
                </a>
                <a class="txt item01 item02" rel="nofollow" title="诚信经营示范单位" target="_blank" href="http://bcp.12312.gov.cn/chengxin?d=3793755&amp;t=101">
                    诚信经营示范单位
                </a>
            </li> -->
            <li>
                <a rel="nofollow" href="http://wljg.gdgs.gov.cn/corpsrch.aspx?key=440101000120723" target="_blank" title="红盾电子链接标识">
                    <img data-original="static/picture/tool_icon5.jpg" src="https://res.360kad.com/theme/default/img/tool_icon5.jpg" alt="" style="display: inline;">
                </a>
                <a class="txt item01 item02" rel="nofollow" title="红盾电子链接标识" target="_blank" href="http://wljg.gdgs.gov.cn/corpsrch.aspx?key=440101000120723">
                    红盾电子链接标识
                </a>
            </li>
            <li>
                <a id='___szfw_logo___' href='https://credit.szfw.org/CX20170801035370070198.html' target='_blank'><img src='static/picture/cert.png' border='0' /></a>
<script type='text/javascript'>(function(){document.getElementById('___szfw_logo___').oncontextmenu = function(){return false;}})();</script>
            </li>
            <li>
                <a class="item03" style="display:block;" key="51c2d63c6856be2ce1761dce" logo_size="83x30" logo_type="realname" rel="nofollow" href="http://v.pinpaibao.com.cn/authenticate/cert/?site=www.360kad.com&at=realname" target="_blank">
                    
                    <span style="display:none;" class="LOGO_aq_jsonp_wrap_" id="AQ_logo_span_init_1">
                        
                    </span><img src="static/picture/sm_83x30.png" alt="安全联盟认证" width="83" height="30" style="border: none;">
                </a>
            </li>
            <li>
                <a style="display:block;padding-top:4px;" key="51c2d63c6856be2ce1761dce" logo_size="83x30" logo_type="business" rel="nofollow" href="http://v.pinpaibao.com.cn/authenticate/cert/?site=www.360kad.com&at=business" target="_blank">
                    
                    <span style="display:none;" class="LOGO_aq_jsonp_wrap_" id="AQ_logo_span_init_2"></span>
                    <img src="static/picture/hy_83x30.png" alt="安全联盟认证" width="83" height="30" style="border: none;">
                </a>
            </li>
        </ul>
        <p class="bottom">&copy2010-2020 广东<a href="http://www.360kad.com">康爱多网上药店</a>版权所有，并保留所有权利</p>
        <!--END行业认证-->

    </div>
</div>
<script>
    $(function () {
        $(".linkBox").hover(function () {
            $(".friendLinks").css("height", "66px");
        }, function () {
            $(".friendLinks").css("height", "22px");
        });
    });
</script>

<!--部件开始:JS_www_Statistics,分组:通用部件-->
<div class="statistics" style="display:none;">

<!-- 谷歌统计 start -->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-3051632-5']);
  _gaq.push(['_setDomainName', '.360kad.com']);
  _gaq.push(['_setAllowHash', false]);
  _gaq.push(['_addOrganic', 'soso', 'w']);
  _gaq.push(['_addOrganic', 'youdao', 'q']);
  _gaq.push(['_addOrganic', 'sogou', 'query']);
  _gaq.push(['_addOrganic', '360', 'q']);
  _gaq.push(['_addOrganic', 'baidu', 'word']);
  _gaq.push(['_addOrganic', 'baidu', 'q1']);
  _gaq.push(['_addOrganic', 'so.com', 'q']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<!-- Google 再营销代码 -->
<!-- <script type="text/javascript">
var google_conversion_id = 972512314;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
</script>
<script type="text/javascript" src="static/js/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="static/picture/da8ce061ad1f4f74a3b8e7a36d9031a4.gif"/>
</div>
</noscript>
-->
<!--百度0628 -->
<script type="text/javascript">
var _bdhmProtocol = " https://";
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F7a942c91de8533c33ddabdacba23065b' type='text/javascript'%3E%3C/script%3E"));
</script>
<!--百度再营销0416 -->
<script type="text/javascript">
<!-- 
var bd_cpro_rtid="nHRvPjm";
//-->
</script>
<script type="text/javascript"  src="static/js/rt.js"></script>
<noscript>
<div style="display:none;">
<img height="0" width="0" style="border-style:none;" src="static/picture/rt.jpg" />
</div>
</noscript>

</div>

<!--部件结束:JS_www_Statistics-->

<!--部件结束:Footer_LastNew-->

   <!--end底部-->
</body>
</html>

    <script>
        //需求登记判断商品数量为0时自动+1
        function NumModify2() {
            if ($('#addNumber').val() <= 0) {
                $('#addNumber').val(1);
                $('#addNumber').focus();
                if ($('#h_ProductType').val() == 0) {
                    AfterProductPrices(1, $('#hidden_ProductId').val());
                } else {
                    $('.ViperPrice_num').html('￥' + parseFloat($('#SingleProductNum').val()).toFixed(2));
                };
                alert("请输入正确的数量！");
            }
            if ($('#addNumber').val() > 999) {
                $('#addNumber').val(1);
                $('#addNumber').focus();
                if ($('#h_ProductType').val() == 0) {
                    AfterProductPrices(1, $('#hidden_ProductId').val());
                } else {
                    $('.ViperPrice_num').html('￥' + parseFloat($('#SingleProductNum').val()).toFixed(2));
                };
                alert("请输入正确的数量！");
            }
        }

        //需求登记购买数量（数量加减）
        function BuyQuantity2(quantity) {
            var q = $.trim(jQuery("#addNumber").val());
            var total = parseInt(q) + parseInt(quantity);
            if (isNaN(q) || q > 999 || q < 0) {
                jQuery("#addNumber").val(1);
                if ($('#h_ProductType').val() == 0) {
                    AfterProductPrices(1, $('#hidden_ProductId').val());
                } else {
                    $('.ViperPrice_num').html('￥' + parseFloat($('#SingleProductNum').val()).toFixed(2));
                }
                return false;
            }

            if (total == 0) {
                $('.ViperPrice_num').html('￥' + parseFloat($('#SingleProductNum').val()).toFixed(2));
            } else {
                if ($('#h_ProductType').val() == 0) {
                    AfterProductPrices(total, $('#hidden_ProductId').val());
                } else {
                    $('.ViperPrice_num').html('￥' + parseFloat(total * $('#SingleProductNum').val()).toFixed(2));
                }
            }
            if (parseInt(total) > 0) {
                jQuery("#addNumber").val(total);
            }
        }

        //需求登记显示
        function GetDemand() {
            $("#needReg_box").css("display", "block");
        }

        //关闭需求登记窗口
        function closedemand() {
            $("#needReg_box").css("display", "none");
        }

        //关闭订阅窗口
        function closemes() {
            $("#txmes").css("display", "none");
        }

        //是否邮件
        function isEmail(strEmail) {
            if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) {
                return true;
            } else {
                return false;
            }
        }

        //是否手机
        function isMobilephone(strMobilephone) {
            if (strMobilephone.search(/^((13|15|17|18|14|16|19)[0-9]{1})+\d{8}$/) != -1) {
                return true;
            } else {
                return false;
            }
        }

        $("#phone-input").focus(function () {
            $(".PromptBox .BoxErrorTips").css("display", "none");
            $(".PromptBox .BoxErrorTips1").css("display", "none");
        });
        $("#mail-input").focus(function () {
            $(".PromptBox .BoxErrorTips").css("display", "none");
            $(".PromptBox .BoxErrorTips1").css("display", "none");
        });
        $("#input1").focus(function () {
            $(".PromptBox .BoxErrorTips2").css("display", "none");
        });

        //添加到货提醒的
        function GoodsChecked() {
            var productid = $("#hidpid").val();
            var phone = $("#phone-input").val().replace("请输入您的电话号码", "");;
            var mail = $("#mail-input").val().replace("请输入您的邮箱地址", "");

            var code = $("#input1").val();

            if (phone == "" && mail == "" && code == "") {
                $(".PromptBox .BoxErrorTips").css("display", "block");
                $(".PromptBox .BoxErrorTips1").css("display", "block");
                $(".PromptBox .BoxErrorTips2").css("display", "block");
                return false;
            }
            if (phone == "") {
                $(".PromptBox .BoxErrorTips").css("display", "block");
                return false;
            }
            if (phone != "" && mail == "") {
                if (!isMobilephone(phone)) {
                    $("#ico-tipsDui").addClass("ico-tipsCuo");
                    $(".BoxErrorTips").html("<i></i>请输入正确的手机号码！");
                    $(".PromptBox .BoxErrorTips").css("display", "block");
                    return false;
                }
            }
            if (phone == "" && mail != "") {
                if (!isEmail(mail)) {
                    $("#ico-tipsDui").addClass("ico-tipsCuo");
                    $(".BoxErrorTips1").html("<i></i>请填写您正确的邮箱地址！");
                    $(".PromptBox .BoxErrorTips1").css("display", "block");
                    return false;
                }
            }
            if (phone != "" && mail != "") {
                if (!isEmail(mail)) {
                    $("#ico-tipsDui").addClass("ico-tipsCuo");
                    $(".BoxErrorTips1").html("<i></i>请填写您正确的邮箱地址！");
                    $(".PromptBox .BoxErrorTips1").css("display", "block");
                    return false;
                }
                if (!isMobilephone(phone)) {
                    $("#ico-tipsDui").addClass("ico-tipsCuo");
                    $(".BoxErrorTips").html("<i></i>请输入正确的手机号码！");
                    $(".PromptBox .BoxErrorTips").css("display", "block");
                    return false;
                }
            }
            if (code == "") {
                $(".PromptBox .BoxErrorTips2").css("display", "block");
                return false;
            }

            jQuery.ajax({
                url: "/Favorite/ArrivalNotice?productId=" + productid + "&phone=" + phone + "&email=" + mail + "&mes=" + code,
                type: "post",
                cache: false,
                success: function (data) {
                    if (data.Result) {
                        $("#ico-tipsDui").removeClass("ico-tipsCuo");
                        $("#ico-tipsDui").addClass("ico-tipsDui");
                        $("#mes").text(data.Message);
                        $("#txmes").css("display", "block");
                        $("#qhms").css("display", "none");

                    } else {
                        document.getElementById('checkCode').onclick();
                        if (data.Message == "验证码失效") {
                            $(".BoxErrorTips2").html("<i></i>验证码失效！");
                            $(".PromptBox .BoxErrorTips2").css("display", "block");
                        }
                        if (data.Message == "验证码错误") {
                            $(".BoxErrorTips2").html("<i></i>验证码错误！");
                            $(".PromptBox .BoxErrorTips2").css("display", "block");
                        }
                        if (data.Message == "订阅失败") {
                            $("#mes").text(data.Message);
                            $("#txmes").css("display", "block");
                        }
                    }
                }
            });
        }

        function dh_submit(prid) {
            $("#hidpid").val(prid);
            $("#qhms").css("display", "block");
        }

        function colse() {
            $("#qhms").css("display", "none");
        }

        $(document).ready(function () {
            $("input[name='chkAll']").click(function () {
                $("input[name='sel']").attr("checked", ($(this).attr("checked")) == "checked" ? true : false);
            });

            GetProductIcon();

            GetProductActivity();

            $("#Stock-select").change(function () {
                var stock = $("#Stock-select").find("option:selected").val();
                window.location.href = "/favorite?stock=" + stock;
            })

        });


        var v = document.getElementsByName("sel");
        var product = document.getElementsByName("pro");
        var quantity = document.getElementsByName("quantity");

        //删除单个
        function DeleteFavorite() {
            var id = $("#h_FavoriteId").val();
            jQuery.ajax({
                url: "/Favorite/Delete?Id=" + id,
                type: "post",
                cache: false,
                success: function (data) {
                    if (!data) {
                        alertPop("取消失败,请重试！");
                        return;
                    }
                    alertSuccess("取消成功！", success);
                }
            });
        }

        //批量删除
        function BatchDelete() {
            var count = 0;
            for (i = 0; i < v.length; i++) {
                if (v[i].checked) {
                    count = count + 1;
                }
            }
            if (count == 0) {
                alertPop("您还没有选择商品!");
                return;
            }
            var favorites = "";
            for (i = 0; i < v.length; i++) {
                if (v[i].checked) {
                    favorites += v[i].value + ",";
                }
            }
            jQuery.ajax({
                url: "/Favorite/BatchDelete?list=" + favorites,
                type: "post",
                cache: false,
                success: function (data) {
                    if (!data) {
                        alertPop(data);
                        return;
                    }
                    alertSuccess("取消成功！", success);

                }
            });

        }

        function success() {
            window.location.href = "/Favorite";
        }

        //批量购买
        function BatchCart() {
            var productIds = "";
            var quantitys = "";
            var i = 0;
            $("input[name='sel']").each(function () {
                if ($(this).attr("checked") == "checked") {
                    i++;
                    productIds += $(this).attr("value") + ",";
                    quantitys += "1,";
                }
            });
            if (i <= 0) {
                alertPop("请选择商品");
                return;
            }
            productIds = productIds.substr(0, productIds.length - 1);
            quantitys = quantitys.substr(0, quantitys.length - 1);
            jQuery.ajax({
                url: "/Cart/AddCarts?productIds=" + productIds + "&quantitys=" + quantitys,
                type: "get",
                cache: false,
                async: false,
                dataType: "json",
                success: function (data) {
                    if (data != "1") {
                        alertPop(data);
                        return;
                    }
                    GetCartjsonp();
                }
            });
        }

        function GetProductIcon() {
            var products = "";
            $.ajax({
                url: "/Favorite/ProductIcons?products=" + products,
                type: "get",
                cache: false,
                async: false,
                dataType: "json",
                success: function (data) {
                    for (var i = 0; i < data.length; i++) {
                        var icon = "";
                        if (data[i].Icon == 0)
                            icon = "";
                        if (data[i].Icon == 1)
                            icon = "otc-lu-ico";
                        if (data[i].Icon == 2)
                            icon = "otc-red-ico";
                        if (data[i].Icon == 3)
                            icon = "otc-bj-ico";
                        if (data[i].Icon == 4)
                            icon = "rx-ico";
                        $("#ico_" + data[i].WareSkuCode).attr("class", icon);
                    }
                }
            });
        }

        var ActivityJson;

        function GetProductActivity() {
            var products = "";
            $.ajax({
                url: "/Favorite/ProductActivity?products=" + products,
                type: "get",
                cache: false,
                async: false,
                dataType: "json",
                success: function (data) {
                    if (data.length == 0)
                        return;
                    ActivityJson = data;
                    for (var i = 0; i < data.length; i++) {
                        if (data[i].AllPromote.length <= 0)
                            continue;
                        var salesHtml = "";
                        for (var j = 0; j < data[i].AllPromote.length; j++) {
                            if (data[i].AllPromote[j].IsWhole == false && (data[i].AllPromote[j].PrmTypeCode == "FullAmountGift" || data[i].AllPromote[j].PrmTypeCode == "FullAmtGift") && salesHtml.indexOf("换取") <= 0) {
                                if (salesHtml == "")
                                    salesHtml += "促销活动：";
                                salesHtml += "<span class=\"Yhuanqu_span\" code=\"" + data[i].WareSkuCode + "\" type=\"换取\">换取</span>";
                            }
                            if (data[i].AllPromote[j].IsWhole == false && (data[i].AllPromote[j].PrmTypeCode == "FullAmountDiscount" || data[i].AllPromote[j].PrmTypeCode == "FullAmtDiscount") && salesHtml.indexOf("优惠") <= 0) {
                                if (salesHtml == "")
                                    salesHtml += "促销活动：";
                                salesHtml += "<span class=\"Yyouhui_span\" code=\"" + data[i].WareSkuCode + "\" type=\"优惠\">优惠</span>";
                            }
                            if (data[i].AllPromote[j].IsWhole == false && (data[i].AllPromote[j].PrmTypeCode == "WareFreeShip" || data[i].AllPromote[j].PrmTypeCode == "CusGradeFreeShip" || data[i].AllPromote[j].PrmTypeCode == "MoneyFreeShip") && salesHtml.indexOf("免邮") <= 0) {
                                if (salesHtml == "")
                                    salesHtml += "促销活动：";
                                salesHtml += "<span class=\"Ymianyou_span\" code=\"" + data[i].WareSkuCode + "\" type=\"免邮\">免邮</span>";
                            }
                        }
                        $("#sales_" + data[i].WareSkuCode).html(salesHtml);
                        $("#sales_" + data[i].WareSkuCode).show();
                    }
                    BindShowIcoInfo();
                }
            });
        }

        function GetProductStock() {
            var products = "";
            $.ajax({
                url: "/Favorite/ProductStock?products=" + products,
                type: "get",
                cache: false,
                async: false,
                dataType: "json",
                success: function (data) {
                    if (data.length == 0)
                        return;
                    for (var i = 0; i < data.length; i++) {
                        var stockName = "";
                        if (data[i].StockStatus == 1)
                            stockName = "禁售缺货";
                        else if (data[i].StockStatus == 2)
                            stockName = "禁售有货";
                        else if (data[i].StockStatus == 3)
                            stockName = "现在有货";
                        else if (data[i].StockStatus == 4)
                            stockName = "货源紧张";
                        else if (data[i].StockStatus == 5)
                            stockName = "库存有限";
                        else if (data[i].StockStatus == 6)
                            stockName = "暂时缺货";
                        $("#stock_" + data[i].WareCode).html(stockName);
                    }

                }
            });
        }


        function BindShowIcoInfo() {
            var $optionA = $(".myCollect-table .shanpin-list td.td-price .Sales span");
            var LwlTime = null;
            var $Notice = $("#Notice-tips");
            $optionA.live("mouseover", function () {
                SetNotice($(this).attr("code"), $(this).attr("type"));
                $Notice.show().css({
                    top: $(this).offset().top + 23 + "px",
                    left: $(this).offset().left - 80 + "px"
                });
            }).live("mouseout", function () {
                $Notice.hide();
            });
        }

        function SetNotice(code, type) {
            $.ajax({
                url: "/Favorite/GetProductActivityList?productId=" + code,
                type: "get",
                cache: false,
                async: false,
                dataType: "json",
                success: function (data) {
                    if (data.length == 0)
                        return;
                    ShowIconDetail(data, type);
                }
            });

        }


        function ShowIconDetail(ActivityJson, type) {
            $("#Notice-tips").html("");
            $("#Notice-tips").append("<i class=\"sanjiao\"></i>");
            for (var j = 0; j < ActivityJson.length; j++) {
                if (ActivityJson[j].IsWhole == false && type == "换取" && (ActivityJson[j].PrmTypeCode == "FullAmtGift" || ActivityJson[j].PrmTypeCode == "FullAmountGift")) {
                    var ahtml = "";
                    for (var k = 0; k < ActivityJson[j].Condition.length; k++) {
                        if (ActivityJson[j].PrmTypeCode == "FullAmtGift") {
                            ahtml += "<p>买满<b>" + ActivityJson[j].Condition[k].LimitedAmt + "</b>元，送";
                            for (var l = 0; l < ActivityJson[j].Condition[k].GiftSet.length; l++) {
                                ahtml += "<b>" + ActivityJson[j].Condition[k].GiftSet[l].PrmContentName + "</b>";
                            }
                        } else if (ActivityJson[j].PrmTypeCode == "FullAmountGift") {
                            ahtml += "<p>买满<b>" + ActivityJson[j].Condition[k].LimitedAmount + "</b>个，送";
                            for (var l = 0; l < ActivityJson[j].Condition[k].GiftSet.length; l++) {
                                ahtml += "<b>" + ActivityJson[j].Condition[k].GiftSet[l].PrmContentName + "</b>";
                            }
                        }
                    }
                    $("#Notice-tips").append(ahtml);
                }
                if (ActivityJson[j].IsWhole == false && type == "优惠" && (ActivityJson[j].PrmTypeCode == "FullAmountDiscount" || ActivityJson[j].PrmTypeCode == "FullAmtDiscount")) {
                    var ahtml = "";
                    for (var k = 0; k < ActivityJson[j].Condition.length; k++) {
                        if (ActivityJson[j].PrmTypeCode == "FullAmtDiscount")
                            ahtml += "<p>买满<b>" + ActivityJson[j].Condition[k].LimitedAmt + "</b>元，减<b>" + ActivityJson[j].Condition[k].DisAmt + "</b>元";
                        else if (ActivityJson[j].PrmTypeCode == "FullAmountDiscount")
                            ahtml += "<p>买满<b>" + ActivityJson[j].Condition[k].LimitedAmount + "</b>个，减<b>" + ActivityJson[j].Condition[k].DisAmt + "</b>元";
                    }
                    $("#Notice-tips").append(ahtml);
                }
                if (ActivityJson[j].IsWhole == false && type == "免邮" && (ActivityJson[j].PrmTypeCode == "WareFreeShip" || ActivityJson[j].PrmTypeCode == "CusGradeFreeShip" || ActivityJson[j].PrmTypeCode == "MoneyFreeShip")) {
                    var ahtml = "";
                    if (ActivityJson[j].PrmTypeCode == "MoneyFreeShip") {
                        ahtml += "<p>买满<b>" + ActivityJson[j].Condition[0].LimitedAmt + "</b>元免邮";
                    } else if (ActivityJson[j].PrmTypeCode == "CusGradeFreeShip") {
                        ahtml += "<p>";
                        for (var q = 0; q < ActivityJson[j].Grade.length; q++) {
                            ahtml += " <b>" + ActivityJson[j].Grade[q].CusGradeName + "</b>";
                        }
                        ahtml += "买满<b>" + ActivityJson[j].Condition[0].LimitedAmt + "</b>元免邮";
                    } else if (ActivityJson[j].PrmTypeCode == "WareFreeShip") {
                        ahtml += "<p>单品买满<b>" + ActivityJson[j].Condition[0].LimitedAmt + "</b>元免邮";
                    }
                    $("#Notice-tips").append(ahtml);
                }
            }
        }

    </script>
